summaryrefslogtreecommitdiff
path: root/std
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 /std
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 'std')
-rwxr-xr-xstd/testing/runner.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/std/testing/runner.ts b/std/testing/runner.ts
index 65b7be66d..9aa31cb4a 100755
--- a/std/testing/runner.ts
+++ b/std/testing/runner.ts
@@ -269,7 +269,6 @@ async function main(): Promise<void> {
const exclude =
parsedArgs.exclude != null ? (parsedArgs.exclude as string).split(",") : [];
const allowNone = parsedArgs["allow-none"];
- const exitOnFail = parsedArgs.failfast;
const disableLog = parsedArgs.quiet;
try {
@@ -277,8 +276,8 @@ async function main(): Promise<void> {
include,
exclude,
allowNone,
- exitOnFail,
- disableLog
+ disableLog,
+ exitOnFail: true
});
} catch (error) {
if (!disableLog) {