allure-framework / allure-java

Allure integrations for Java test frameworks
Apache License 2.0
355 stars 224 forks source link

🐞: [JUnit5] Suite view : Epic is not included in the tree, and tests are included twiced. #1004

Closed harmin-parra closed 8 months ago

harmin-parra commented 8 months ago

What happened?

I have the following JUnit5 test

@Test
public void fill_in_form() {
    Allure.epic("Epic");
    Allure.story("Story");
    Allure.suite("Suite");
    Allure.feature("Feature");
    // rest of code

When I run the test and generate the test, I get this behavior:

Suite view:

Behavior view:

My understanding is that Epic and Suite should appear in the Suite view, whereas Story and Feature should appear in the Behavior view.

image

image

What Allure Integration are you using?

allure-junit5

What version of Allure Integration you are using?

2.25.0

Note: 2.26.0 isn't present in Maven repo

What version of Allure Report you are using?

2.25.0

Note: 2.26.0 isn't present in Maven repo

Code of Conduct

baev commented 8 months ago

The suites tab shows tests grouped by parentSuite, suite and subSuite. The behaviour tab shows tests grouped by epic, feature, and story.

Some of the labels are set by default. For example, the framework usually sets' suite' for unit test frameworks, while feature and story are set by BDD frameworks (e.g., cucumber).