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

Flaky tests, because exceptions in tests can be ignored #156

Open
UncleInf opened this issue Oct 14, 2024 · 0 comments
Open

Flaky tests, because exceptions in tests can be ignored #156

UncleInf opened this issue Oct 14, 2024 · 0 comments

Comments

@UncleInf
Copy link

UncleInf commented Oct 14, 2024

When running tests with cucumber/serenity runner exceptions can be ignored, resulting in runs which pass but that should have failed. To reproduce there is a repo fork with branch with a test to reproduce the issue.

Exceptions in tests do get ignored when:

  • @Step annotation is used in single scenario
  • or atleast one scenario uses @Step annotations in feature file run

Attaching a picture from 2 runs:

  • both scenarios DOES throw exception
  • when ran as a single test without @Step annotation -- test fails (picture on the left)
  • when ran as a whole feature -- tests pass even though both tests should fail (picture on the right)

image

@UncleInf UncleInf changed the title flaky tests because exceptions in tests can be ignored Flaky tests, because exceptions in tests can be ignored Oct 21, 2024
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