Run Cucumber scenario outline by range on line numbers -
i know it's possible run specific examples in cucumber
cucumber tests/features/my.feature:141 #just example 141 cucumber tests/features/my.feature:141:151 #just examples 141 & 151
what syntax run range of examples 141 151?
cucumber tests/features/my.feature:141-151 #this not work
if helps, here scenario outline snippet... assuming 'tc-44' on line 141 in file
scenario outline: running scenario subset of examples given testing subset , scenario outline many examples can run subset providing range examples: | test-case | | tc-44 | | tc-45 | | tc-46 | | tc-47 | | tc-48 | | tc-49 | ... | tc-100 |
from command line can run specific scenarios same feature file using colon between line numbers, this:
cucumber tests/features/my.feature:37:52
if scenarios defined @ lines 37 , 52, both executed cucumber.
you can likewise run specific examples referencing line number. in case, work:
cucumber tests/features/my.feature:141:142:143:144:145:146:147:148:149:150:151
cucumber execute example found @ each line number.
Comments
Post a Comment