cypress-grep icon indicating copy to clipboard operation
cypress-grep copied to clipboard

Flitering out tests within test suite describe

Open Gayathri-Kesavakannan opened this issue 2 years ago • 1 comments

I have test suite as

describe('block for config', {tags: '@smoke'}, () => { it('should run', {tags: '@smoke'},() => {})

it('should also work', {tags: '@skip'},() => {}) })

I want to run first test but skip second test with tag @skip Is this possible ? I tried --env grepTags='@smoke+-@skip' but still it's running entire test suite with both test

Gayathri-Kesavakannan avatar Oct 07 '22 14:10 Gayathri-Kesavakannan

As a workaround, this should work:

describe('block for config', () => {
it('should run', {tags: '@smoke'},() => {})

it('should also work', {tags: '@Skip'},() => {})
})

joshuajtward avatar Oct 12 '22 11:10 joshuajtward

We are in the process of deprecating this repo as this package has been republished under @cypress/grep and has moved to https://github.com/cypress-io/cypress/tree/develop/npm/grep. I'm going to go ahead and close this issue as it appears stale. If this is still an issue, please open a new issue here

jordanpowell88 avatar Oct 28 '22 19:10 jordanpowell88