diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-03-19 14:26:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 14:26:47 +0100 |
commit | 8de4a05f2a93f194f71b959f4d47a1b4fc61aa41 (patch) | |
tree | c2e0a4ad75fe5d4d05d30e495fa7106a297c741c /cli/test_runner.rs | |
parent | 5b10ab0984fd762c14caf524d59ec8b6940d2bfb (diff) |
fix: std/testing/runner.ts and deno test (#4392)
After splitting "failFast" and "exitOnFail" arguments, there was a situation where failing tests did not exit with code 1.
* fixed argument value passed to Deno.runTests() in deno test
* fixed argument value passed to Deno.runTests() in std/testing/runner.ts
* added integration tests for deno test to ensure failFast and exitOnFail work as expected
* don't write test file to file system, but keep it in memory
Diffstat (limited to 'cli/test_runner.rs')
-rw-r--r-- | cli/test_runner.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/test_runner.rs b/cli/test_runner.rs index 92c15e251..c3482560b 100644 --- a/cli/test_runner.rs +++ b/cli/test_runner.rs @@ -69,7 +69,7 @@ pub fn render_test_file(modules: Vec<Url>, fail_fast: bool) -> String { } let run_tests_cmd = - format!("Deno.runTests({{ exitOnFail: {} }});\n", fail_fast); + format!("Deno.runTests({{ failFast: {} }});\n", fail_fast); test_file.push_str(&run_tests_cmd); test_file |