deno test --exclude #23731
Labels
cli
related to cli/ dir
help wanted
community help requested
suggestion
suggestions for new features (yet to be agreed)
testing
related to deno test and coverage
I would like to exclude some files with the command line, so I can skip certain tests in my CI.
It's possible to exclude certain tests with deno.json by adding a
test.exclude
property, but this applies to all invocations ofdeno test
, even when you specify an excluded file directly by filename. So, I have to delete it from deno.json when I want to run those tests manually.I couldn't find any
--exclude
option in deno test, but it seems like it should exist.EDIT: It is also possible to set
{ ignore: true }
in the test options, and even{ ignore: Deno.env.get('CI') === 'true' }
, eg:This is a little better than using
text.exclude
in deno.json, but it only works on individual tests, not entire files. So it becomes a maintenance problem when you have a lot of tests.The text was updated successfully, but these errors were encountered: