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

Test nesting doesn't work #2855

Open
1 task done
LiGeten opened this issue Jan 18, 2025 · 0 comments
Open
1 task done

Test nesting doesn't work #2855

LiGeten opened this issue Jan 18, 2025 · 0 comments
Labels
triage type:bug Something isn't working

Comments

@LiGeten
Copy link

LiGeten commented Jan 18, 2025

Describe the Bug

parent test and sub test are not displayed correctly structure is not preserved

Steps to Reproduce

@DisplayName("A customer object")
class DAOTest {

@Test
@DisplayName("can be created with the dao")
void canBeCreated() {  }

@Nested
@DisplayName("when created")
class WhenCreated {

    Customer customer;

    @BeforeEach
    void setup() { }

    @Test @DisplayName("it must be saved to the dao")
    void mustBeSaved() { }

    @Nested @DisplayName("after saving a customer")
    class AfterSaving {

        @BeforeEach
        void setup() { }

        @Test @DisplayName("it can be fetched from the dao")
        void canBeFetched() {  }

        @Test @DisplayName("it cannot be deleted by wrong id")
        void cannotBeDeletedByWrongId() {

        }
    }
}

}

Expected Behaviour

nesting of tests must be preserved

Screenshots or Additional Context

https://www.dropbox.com/scl/fi/3iz810yl2tl8etserqv1f/18-01-2025-111136.jpg?rlkey=g7b7oqseqt0s70z07dc9l9m7o&dl=0
https://www.dropbox.com/scl/fi/noj0izhgxfvk166cotfhm/18-01-2025-112540.jpg?rlkey=4p5j69xm0q3rlyqr7t37xiakw&dl=0

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-junit5

What version of Allure Integration you are using?

2.26.0

What version of Allure Report you are using?

2.32.0

Code of Conduct

  • I agree to follow this project's Code of Conduct
@LiGeten LiGeten added triage type:bug Something isn't working labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant