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

JUnit5 - the test case is not included in report if it fails or skips (assume) in @BeforeAll method #399

Closed
vinogradoff opened this issue Nov 5, 2019 · 0 comments · Fixed by #402

Comments

@vinogradoff
Copy link
Contributor

vinogradoff commented Nov 5, 2019

Reproduction:

https://github.com/vinogradoff/allure-maven-junit5-example

mvn clean test
mvn allure:serve

BeforeAllTest cases is missing in the report

Analysis:

The *.json for the test is missing in allure-results folder

https://github.com/allure-framework/allure-java/blob/master/allure-junit-platform/src/main/java/io/qameta/allure/junitplatform/AllureJunitPlatform.java#L163

This line exits because the type is not TEST, but CONTAINER.

@vinogradoff vinogradoff changed the title JUnit5 - the test case is not included in report if it fails in @BeforeAll method JUnit5 - the test case is not included in report if it fails or skips (assume) in @BeforeAll method Nov 11, 2019
@baev baev closed this as completed in #402 Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant