I am aware of the 'tags' option in the 'config' file which is more useful to ignore some tag. But in case the test targetting only a specific tag how can be achieved it?
Hi, I achieved this creating a script in my package json:
"smokeUat": "node ./node_modules/protractor/bin/protractor ./protractor.conf.js --cucumberOpts.tags="@uat""
With this I only run the scripts with tag uat.
Also you can use the name of the scenario:
"runSpecificScenario": "node ./node_modules/protractor/bin/protractor ./protractor.conf.js --cucumberOpts.name scenarioName"
Documentation is pretty good here!
Hey @rakeshnambiar! Does @jdmesalosada and @nbarrett suggestions solve the issue for you?
Thanks @jdmesalosada @nbarrett and @jan-molak. It's worked for me. Previpously I mentioned all the required tags within a single quotes instead of :
['~@RegressionTest', '@SanityTest']
Glad you managed to get it resolved, thanks for letting us know!