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 report has wrong number of test cases when failure in "Background" #3486

Open
zelite opened this issue Jun 24, 2024 · 0 comments
Open

Comments

@zelite
Copy link

zelite commented Jun 24, 2024

What happened?

I am executing a bdd test which uses the package net.serenitybdd.screenplay.rest.
When an error happens in a step called in the Background section, the serenity report displays the wrong number of total test cases. It seems to list each step as a test case.

What did you expect to happen?

I expect the test case number to be correct. Otherwise the reports are of little value.

Serenity BDD version

4.1.20

JDK version

openjdk 17.0.11 2024-04-16

Execution environment

Windows 10. No browser is used in tests.

When trying to reproduce the bug, I noticed it only happens when using the net.serenitybdd.screenplay.rest module.

How to reproduce the bug.

I have this repo based on the serenity cucumber starter. Clone this https://github.com/zelite/serenity-cucumber-starter-master and run mvn clean verify

How can we make it happen?

Add it to the Serenity BDD backlog and wait for a volunteer to pick it up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant