Ava: Document how to exclude a directory of tests

Created on 23 Mar 2018  路  5Comments  路  Source: avajs/ava

I searched everywhere, issues and docs for "exclude" or "ignore" and I could not find it.

I have a bunch of tests I want to exclude, how is it possible?

good for beginner help wanted documentation

Most helpful comment

Patterns prefixed with ! are ignore patterns in the files config. We should better document this though.

https://github.com/avajs/ava#configuration

All 5 comments

Patterns prefixed with ! are ignore patterns in the files config. We should better document this though.

https://github.com/avajs/ava#configuration

I'm just getting into the open source community, and I'd love to work on this!

Go for it @Briantmorr. Let me know if you have any questions!

Thanks @novemberborn ! I submitted the pull request late Tuesday Night, but I just realized I should also post here for visibility. Please let me know if my changes were what you had in mind!

@vjpr, you can exclude certain tests in a file by adding .skip to the test. For example,

test.skip('I will not run', t => {
  t.fail()
})
Was this page helpful?
0 / 5 - 0 ratings