Rule to enforce tags usage
Opened this issue · 2 comments
maiolica commented
Would like to use a rule that enforce the usage of tags on each test, see:
https://www.npmjs.com/package/@cypress/grep#filter-with-tags
Ex. wrong code:
it('works as an array', () => {
expect(true).to.be.true
})
Fixed code:
it('works as an array', { tags: ['config', 'some-other-tag'] }, () => {
expect(true).to.be.true
})
MikeMcC399 commented
I don't really understand why the code using tags is labeled as "wrong". It looks like you got this the wrong way around.