예제 #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
파일: runtests.py 프로젝트: bbrizzi/gaia
# 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
파일: runtests.py 프로젝트: starnight/gaia
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,
        )