mave Junit surefire-report.html add test description for each test executed

Viewed 10

there is a way to include into the "surefire Junit Html report", also the description of each single Junit5 test executed?

My Junit Html report is located: ./target/site/surefire-report.html

For example I have this simple Juni5 test with a @Description annotation.

@SpringBootTest
class TestDummy {

    @Test   
    @Description("This is the description I need to print in the Html Report")
    void MyTest(){
        assertEquals("A","A");
    }
}

I execute the maven test and create the surefire-report.html

mvn surefire-report:report site -Dtest=TestDummy

In the report generated, I can see only the method name "MyTest" , but there is a way to print also the test @Desctription?

enter image description here

0 Answers
Related