diff --git a/.gitignore b/.gitignore index dd7eca4..8b95ae0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .pub packages + +.idea \ No newline at end of file diff --git a/bin/run_tests.dart b/bin/run_tests.dart index 416f58f..6dae78f 100644 --- a/bin/run_tests.dart +++ b/bin/run_tests.dart @@ -64,6 +64,10 @@ void runTests( '"auto" will use the number of processors available on the ' 'machine. Otherwise an integer is expected.') String maxProcesses: "auto", + @Option(help: 'Provide a custom default html file for browser tests.') + String defaultHtmlTemplate: "", + @Option(help: 'Provide a custom VM Dart template file for executing VM tests.') + String vmDartTemplate: "", @Flag(abbr: 'c', help: 'Prints the output in color in a shell.') bool color : false, @Flag(abbr: 'v', help: 'Prints all tests results instead of just the ' @@ -154,7 +158,9 @@ void runTests( // Step 2: Check if a Dart project can be found in [projectPathUri]. DartProject dartProject = new DartProject(projectPath, dartBinaries, - maxProcesses: maxParallelProcesses); + maxProcesses: maxParallelProcesses, + customDefaultHtmlPath: defaultHtmlTemplate, + customVmDartTemplatePath: vmDartTemplate); print("\nLooking for Dart project in \"$projectPath\"..."); try { dartProject.checkProject(); diff --git a/lib/src/browser_test_runner.dart b/lib/src/browser_test_runner.dart index cf0408b..cfc2bba 100644 --- a/lib/src/browser_test_runner.dart +++ b/lib/src/browser_test_runner.dart @@ -195,29 +195,3 @@ class BrowserTestRunner extends TestRunner { "${testFileName.replaceFirst(new RegExp(r"\.dart$"), ".html")}"; } } - - -/// Template of a Default HTML file for Browser unittest files that will -/// start the tests in the Dart file written instead of the `{{test_file_name}}` -/// placeholder. -const String _BROWSER_TEST_HTML_FILE_TEMPLATE = ''' - - - - - -
-