serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

Report - Cucumber: Test counter is not right when using tags on the example table #217

Open ortsevlised opened 4 years ago

ortsevlised commented 4 years ago

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|

serenity1

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.

Any suggestions?

wakaleo commented 4 years ago

Filtering by tags in tables isn’t supported yet.

ortsevlised commented 4 years ago

Thanks for such a quick response, is it planned to be supported any time soon? again thanks!