I know there is a way you can modify the localConfig.json file and by adding something like "tag":"name", in feature files you will be able to write @name and test ONLY this feature.
How does it work?
I know there is a way you can modify the localConfig.json file and by adding something like "tag":"name", in feature files you will be able to write @name and test ONLY this feature.
How does it work?
There are no annotations in javascript.
You have several options here:
use suites
(recommended) to group your tests logically:
suites: {
homepage: 'tests/e2e/homepage/**/*Spec.js',
search: [
'tests/e2e/contact_search/**/*Spec.js',
'tests/e2e/venue_search/**/*Spec.js']
},
And then run, for instance:
protractor protractor.conf.js --suite homepage
use grep
option:
protractor conf.js --grep='pattern to match'
See also:
Okay, so apparently nobody knows this (simple) solution I found out by myself now:
1: Go to localConfig.json
2: Write "testSuiteTags": ["@YourName"]
3: Place @YourName (tag) right before specific scenario in .feature file-
That´s it