Hi, I'm running a test using serenity with cucumber where I use different tags in the example section.
im running it with this arguments -Dcucumber.options="--tags @firstTag"
When I generate the reports the counter shows the total number including both tags instead the only one ran.
Ie:
Scenario Outline: some title
Given ...
When ...
Then I see '<something>'
@firstTag
Examples:
|something|
|xxx|
@secondTag
Examples:
|something|
|yyy|
However if I run the test using the tags before Scenario Outline, the other tags dont appear and the counter is fine.
@firstTag
Scenario Outline: some title
Given ...
When ...
Then I see '<something>'
Examples:
|something|
|xxx|
@secondTag
Scenario Outline: some title
Given ...
When ...
Then I see '<something>'
Examples:
|something|
|xxx|
But as you see writing the test in this way creates duplication that Im trying to avoid.
Hi, I'm running a test using serenity with cucumber where I use different tags in the example section. im running it with this arguments -Dcucumber.options="--tags @firstTag"
When I generate the reports the counter shows the total number including both tags instead the only one ran.
Ie:
However if I run the test using the tags before Scenario Outline, the other tags dont appear and the counter is fine.
But as you see writing the test in this way creates duplication that Im trying to avoid.
Any suggestions?