Suppose I have 10 spec files all are named *********.test.js
, I want to run my tests on all 9 files except the file Idontwantyou.test.js
.
Currently I am finding my spec files in my config.file
with:
specs: ['*.test.js']
- this will run all 10 files.
How do I make it run all the 9 test files but skip the Idontwantyou.test.js
?
You can exclude
the spec's by adding them in the exclude tag in you conf.js file. You can also add patterns to exclude many test scripts with similar names. Here's how to do it -
exclude: ['Idontwantyou.test.js'],
More info can be found here. Hope this helps. If that link is broken, search the config file for "exclude".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With