def run_tool_with_html_xml_coverage(step, runner, _ordering): world.scenario["runner"] = runner args = ['run', config_path(runner), '--coverage-html', coverage_path(runner, "html", actual=True), '--coverage-xml', coverage_path(runner, "xml", actual=True), '--timeout', '2'] world.run_tool_with_args(args)
def run_tool_with_coverage(step, runner, format): world.scenario["runner"] = runner args = ['run', config_path(runner), '--coverage-{format}'.format(format=format.lower()), coverage_path(runner, format, actual=True), '--timeout', '2'] world.run_tool_with_args(args)
def run_tool_with_xunit(step): args = [ 'run', config_path(), '--xunit-report', 'xunit.xml' ] world.run_tool_with_args(args)
def run_tool_in_dev_mode(step, runner): world.scenario["runner"] = runner # Patch the call to webbrowser.open_new() # Use this to raise a KeyboardInterrupt (so the tool terminates) # while checking that the page loads correctly def load_page_and_exit(url): world.load_page(url) raise KeyboardInterrupt world.mock_webbrowser.open_new.side_effect = load_page_and_exit world.run_tool_with_args(['dev', config_path(runner)])
def run_tool_with_failing_test_suite(step): world.run_tool_with_args(['run', config_path("jasmine", "failing"), '--timeout', '2'])
def run_tool_with_passing_test_suite(step): world.run_tool_with_args(['run', config_path("jasmine", "passing")])
def run_tool_with_no_coverage(step, runner): world.scenario["runner"] = runner world.run_tool_with_args( ['run', config_path(runner), '--timeout', '2'] )
def when_i_run_js_test_tool_init(step): args = ['init', 'js_test_suite.yml'] world.run_tool_with_args(args)