cypress-io / cypress-grep

Filter tests using substring
137 stars 19 forks source link

feat: support tags in the test config object #21

Closed bahmutov closed 3 years ago

bahmutov commented 3 years ago

Cypress tests can have their own test config object, and when using this plugin you can put the test tags there, either as a single tag string or as an array of tags.

it('works as an array', { tags: ['config', 'some-other-tag'] }, () => {
  expect(true).to.be.true
})

it('works as a string', { tags: 'config' }, () => {
  expect(true).to.be.true
})

You can run both of these tests using --env grep=config string.

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 1.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: