We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Passing --fail-fast to deno test is documented to stop on the first failure. This works with Deno.test(), but not with describe / expect.
--fail-fast
deno test
Deno.test()
describe
expect
Steps to Reproduce
main_test.ts:
import { describe, test } from '@std/testing/bdd'; import { assertEquals } from "@std/assert"; describe('addition', () => { test(function addTest1() { assertEquals(1 + 1, 42); }); test(function addTest2() { assertEquals(2 + 2, 4); }); });
$ deno test --fail-fast Check file:///home/dandv/deno-bugs/main_test.ts running 1 test from ./main_test.ts addition ... addTest1 ... FAILED (7ms) addTest2 ... ok (1ms) addition ... FAILED (due to 1 failed step) (12ms) ERRORS addition ... addTest1 => https://jsr.io/@std/testing/1.0.9/_test_suite.ts:393:15 error: AssertionError: Values are not equal. [...]
Expected behavior
addTest2 should not have executed.
addTest2
Environment
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Passing
--fail-fast
todeno test
is documented to stop on the first failure. This works withDeno.test()
, but not withdescribe
/expect
.Steps to Reproduce
main_test.ts:
Expected behavior
addTest2
should not have executed.Environment
The text was updated successfully, but these errors were encountered: