Closed dilugit closed 2 years ago
All the specs are running for me as well. @dilugit were you able to solve this issue?
@dilugit I resolved this by adding in cypress/plugins/index.js
const grepPlugin = require('cypress-grep/src/plugin');
...
grepPlugin(config);
in commands.ts -
import * as grep from 'cypress-grep';
grep();
I'm having the same issue, all tests are running, ignoring the tag I'm using. I tried @MaheshSinghSawant approach but still not working. I get the following error:
> grep is not a function
@MaheshSinghSawant No, I couldn't .Then what I did was created folders as Smoke, Regression and added Test scripts under these folders. Then used npm commands to call the TCs of respective folder when it's either Smoke/Regression.
@dilugit I was able to make it work by addingrequire ('cypress-grep')();
in support/index.js file
I can probably make it an opt-in feature for some simple cases following the approach shown in this video https://youtu.be/44kkiCa7VJk
Released support for simple --grep title
case, not for test tags
:tada: This issue has been resolved in version 2.9.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
For me it executed all the specs under integration rather the tag given. I followed below steps. Could you please let me know where I have done wrong?
Install grep
Package.json "smoke:qa": "cypress run --env grepTags=\"Smoke\" --browser chrome",
index.js require('cypress-grep')
Added the Smoke tag for a spec describe('ID - 343 : Verify Navigate to "Assisted Service" Page, Heading & Grid Fields',{tags:'Smoke'}, function () {
Execute the below command; npm run smoke:qa