Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serenity incorrect percentage calculation while running with tags in cucumber examples #2702

Closed
ck-chandru opened this issue Feb 10, 2022 · 2 comments

Comments

@ck-chandru
Copy link

ck-chandru commented Feb 10, 2022

Hi,

I have integrated serenity with cucumber and I tagged my Examples in feature file based on TestType, Region & TransferType. Attached the sample feature file.

I am using serenity 3.1.20 version.

I am running the test using below command which execute only the examples from Asia region.
mvn clean verify -Dtags="Region:Asia"

Issue:
As per the feature file attached, I have totally 5 rows in example table, but the serenity report shows only 3.
@TestType=Regression @region=Asia @TransferType=Manual
Examples:
|Column1|Column2|Column3|
|Value |Value |Value |
|Value |Value |Value |

@TestType=Regression @Region=Asia @TransferType=Auto
Examples:
  |Column1|Column2|Column3|
  |Value  |Value  |Value  |
  |Value  |Value  |Value  |
  |Value  |Value  |Value  |

image

Number of test passed is 5
image

But the total number of test is showing only 3, because of which the pass % age is showing more than 100.
image

Sample.txt

@wakaleo
Copy link
Member

wakaleo commented Feb 10, 2022

Use the Cucumber options, e.g.

mvn clean verify -Dcucumber.filter.tags="@Region:Asia"

@wakaleo
Copy link
Member

wakaleo commented Feb 12, 2022

Closing presumed answered.

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants