Ejemplo n.º 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
Ejemplo n.º 2
0
def main():
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestArguments)
Ejemplo n.º 3
0
def run():
    cli(runner_class=ReleaseTestRunner, parser_class=ReleaseTestParser)
Ejemplo n.º 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
Ejemplo n.º 5
0
def main():
    cli(runner_class=GaiaTestRunner)
Ejemplo n.º 6
0
def run():
    cli(runner_class=ReleaseTestRunner, parser_class=ReleaseTestParser)
Ejemplo n.º 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)
Ejemplo n.º 8
0
def main():
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
Ejemplo n.º 9
0
def main():
    cli(runner_class=MicroBenchTestRunner)
Ejemplo n.º 10
0
def cli_functional():
    cli(
        runner_class=FirefoxUITestRunner,
        parser_class=FirefoxUIArguments,
    )
Ejemplo n.º 11
0
def cli_update():
    cli(runner_class=UpdateTestRunner,
        parser_class=UpdateArguments,
        )
Ejemplo n.º 12
0
def main():
    cli(runner_class=GaiaTestRunner)
Ejemplo n.º 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)
Ejemplo n.º 14
0
def cli_update():
    cli(runner_class=UpdateTestRunner,
        parser_class=UpdateArguments,
        harness_class=FirefoxUIHarness)
Ejemplo n.º 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)
Ejemplo n.º 16
0
def main():
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestArguments)
Ejemplo n.º 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,
    )
Ejemplo n.º 18
0
def main():
    cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
Ejemplo n.º 19
0
def cli_functional():
    cli(runner_class=FirefoxUITestRunner,
        parser_class=FirefoxUIArguments,
        )