1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-13 16:26:08 -05:00
denoland-deno/cli/tests/test_runner_test.ts
Bartek Iwańczuk 8de4a05f2a
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
2020-03-19 14:26:47 +01:00

19 lines
394 B
TypeScript

// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { assert } from "../../std/testing/asserts.ts";
Deno.test(function fail1() {
assert(false, "fail1 assertion");
});
Deno.test(function fail2() {
assert(false, "fail2 assertion");
});
Deno.test(function success1() {
assert(true);
});
Deno.test(function fail3() {
assert(false, "fail3 assertion");
});