allure-framework / allure-java

Allure integrations for Java test frameworks
Apache License 2.0
342 stars 219 forks source link

🐞: JUnit 5 @Nested class is not considered a sub-suite of parent class #992

Closed pedrolamarao closed 5 months ago

pedrolamarao commented 5 months ago

What happened?

@Nested is JUnit feature that allows a test hierarchy with more levels than the basic two, class and method. Allure has the similar concept of a super/sub test suite relation. Currently, Allure Junit 5 integration does interprets @Nested as a top-level suite instead of a sub-suite of the parent class. I suggest that JUnit 5 @Nested classes be interpreted as sub-suites of the parent class.

What Allure Integration are you using?

allure-junit5

What version of Allure Integration you are using?

2.25.0

What version of Allure Report you are using?

2.25.0

Code of Conduct

baev commented 5 months ago

Duplicate of #391