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

Tests skipped after failing @Before step are not marked as skipped in console #2465

Closed
skhandekar1 opened this issue May 21, 2021 · 4 comments

Comments

@skhandekar1
Copy link

I have an @before step in my script, which if fails should skip the rest of the tests. That works fine and the tests show as skipped in the Serenity Reports as shown in the image below:

image

But when I look at the overall test report, the tests do not show as skipped. Same this is seen in the console:

image

Also is there a way to mark that an @before test has failed hence skipping the remaining tests?

@wakaleo
Copy link
Member

wakaleo commented May 22, 2021

If a test fails in the @before method, it will be reported as a failure or an error, because something went wrong. If you want a different type of indicator, you can try using Compromised exceptions.

@skhandekar1
Copy link
Author

The remaining tests are not being show as failed either. But it does show broken. Is that the expected behaviour? Also where can i find more info on Compromised exceptions?

@wakaleo
Copy link
Member

wakaleo commented May 24, 2021

Do you mean the remaining steps? That is normal behaviour.

http://thucydides.info/docs/articles/semantic-exceptions.html

@skhandekar1
Copy link
Author

Thank you. I will try this and close the issue. Could you also please look at issue #2451

@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