Пример #1
0
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
Пример #2
0
def main():
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestArguments)
Пример #3
0
def run():
    cli(runner_class=ReleaseTestRunner, parser_class=ReleaseTestParser)
Пример #4
0
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
Пример #5
0
def main():
    cli(runner_class=GaiaTestRunner)
Пример #6
0
def run():
    cli(runner_class=ReleaseTestRunner, parser_class=ReleaseTestParser)
Пример #7
0
# 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)
Пример #8
0
def main():
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
Пример #9
0
def main():
    cli(runner_class=MicroBenchTestRunner)
Пример #10
0
def cli_functional():
    cli(
        runner_class=FirefoxUITestRunner,
        parser_class=FirefoxUIArguments,
    )
Пример #11
0
def cli_update():
    cli(runner_class=UpdateTestRunner,
        parser_class=UpdateArguments,
        )
Пример #12
0
def main():
    cli(runner_class=GaiaTestRunner)
Пример #13
0
# 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)
Пример #14
0
def cli_update():
    cli(runner_class=UpdateTestRunner,
        parser_class=UpdateArguments,
        harness_class=FirefoxUIHarness)
Пример #15
0
# 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)
Пример #16
0
def main():
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestArguments)
Пример #17
0
# 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,
    )
Пример #18
0
def main():
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
Пример #19
0
def cli_functional():
    cli(runner_class=FirefoxUITestRunner,
        parser_class=FirefoxUIArguments,
        )