def test_cli_exit_code(num_fails_crashed, exit_code, harness_class): with pytest.raises(SystemExit) as err: cli(harness_class=harness_class) assert err.value.code == exit_code
def main(): cli(runner_class=GaiaTestRunner, parser_class=GaiaTestArguments)
def run(): cli(runner_class=ReleaseTestRunner, parser_class=ReleaseTestParser)
def main(): cli(runner_class=GaiaTestRunner)
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from gaia_test import GaiaTestCase from marionette import MarionetteTestRunner from marionette.runtests import cli class GaiaTestRunner(MarionetteTestRunner): def register_handlers(self): self.test_handlers.extend([GaiaTestCase]) if __name__ == "__main__": cli(runner_class=GaiaTestRunner)
def main(): cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
def main(): cli(runner_class=MicroBenchTestRunner)
def cli_functional(): cli( runner_class=FirefoxUITestRunner, parser_class=FirefoxUIArguments, )
def cli_update(): cli(runner_class=UpdateTestRunner, parser_class=UpdateArguments, )
def cli_update(): cli(runner_class=UpdateTestRunner, parser_class=UpdateArguments, harness_class=FirefoxUIHarness)
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import sys from session.session_test import SessionTestCase, SessionJSTestCase from session.runner import BaseSessionTestRunner, BaseSessionArguments from marionette.runtests import MarionetteHarness, cli class SessionTestRunner(BaseSessionTestRunner): def __init__(self, **kwargs): BaseSessionTestRunner.__init__(self, **kwargs) self.test_handlers = [SessionTestCase, SessionJSTestCase] class SessionArguments(BaseSessionArguments): def __init__(self, **kwargs): BaseSessionArguments.__init__(self, **kwargs) if __name__ == "__main__": cli(runner_class=SessionTestRunner, parser_class=SessionArguments, harness_class=MarionetteHarness, testcase_class=SessionTestCase, args=None)
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import sys from session.session_test import SessionTestCase, SessionJSTestCase from session.runner import BaseSessionTestRunner, BaseSessionArguments from marionette.runtests import MarionetteHarness, cli class SessionTestRunner(BaseSessionTestRunner): def __init__(self, **kwargs): BaseSessionTestRunner.__init__(self, **kwargs) self.test_handlers = [SessionTestCase, SessionJSTestCase] class SessionArguments(BaseSessionArguments): def __init__(self, **kwargs): BaseSessionArguments.__init__(self, **kwargs) if __name__ == "__main__": cli( runner_class=SessionTestRunner, parser_class=SessionArguments, harness_class=MarionetteHarness, testcase_class=SessionTestCase, args=None, )
def cli_functional(): cli(runner_class=FirefoxUITestRunner, parser_class=FirefoxUIArguments, )