Open dandv opened 2 months ago
This happens because we map each test
/it
case to test step (t.step
) and test steps can't be filtered by deno test --filter
option (This is by design in this way. See https://github.com/denoland/deno/issues/26997 ).
This probably can be fixed by changing the mapping of it
/test
case to Deno.test
instead of mapping to t.step
.
Describe the bug During behavior-driven development it is useful to group
test
s intodescribe
s and also to be able to run tests individually. Thetest
/t.step
structure does not allow filtering for individual steps (and is not intended to). Therefore I resorted to the standard BDD library, but it turns our that filtering also only applies to the names ofdescribe
blocks, nottest
orit
blocks.Steps to Reproduce
bdd.ts
with the contentsdescribe('this is the describe', () => { test('test 1', () => { assertEquals(1, 1); }); it('test 2', () => { assertEquals(2, 2); }); });