summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-03-19 14:26:47 +0100
committerGitHub <noreply@github.com>2020-03-19 14:26:47 +0100
commit8de4a05f2a93f194f71b959f4d47a1b4fc61aa41 (patch)
treec2e0a4ad75fe5d4d05d30e495fa7106a297c741c /cli/tests/integration_tests.rs
parent5b10ab0984fd762c14caf524d59ec8b6940d2bfb (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/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 29203d411..51f849ff6 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -899,6 +899,18 @@ itest!(_026_redirect_javascript {
http_server: true,
});
+itest!(deno_test_fail_fast {
+ args: "test --failfast test_runner_test.ts",
+ exit_code: 1,
+ output: "deno_test_fail_fast.out",
+});
+
+itest!(deno_test {
+ args: "test test_runner_test.ts",
+ exit_code: 1,
+ output: "deno_test.out",
+});
+
itest!(workers {
args: "test --reload --allow-net workers_test.ts",
http_server: true,