You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add @Description(useJavaDoc = true) to an existing JUnit4 test case. e.g.
/**
* This Javadoc describes the test that just passes. Demonstrates the use of Javadoc as test description.
*/
@Test
@Description(useJavaDoc = true)
public void simpleTestWithDescriptionFromJavadoc() throws Exception {
assertThat(1, is(1));
}
Run 'mvn clean test allure:report allure:serve' to see the report
Check the description of test method simpleTestWithDescriptionFromJavadoc
Expected behavior
See the Javadoc as description in the report for the SimpleTest method simpleTestWithDescriptionFromJavadoc.
Screenshots
Environment (please complete the following information):
Describe the bug
The Allure Report does not show the description if Maven JUnit4 is used with the Annotation
@Description(useJavaDoc = true)
To Reproduce
Use the Git Repo: https://github.com/focbenz/allure-junit-example/tree/bug/javadoc-description-not-in-report or the following
Steps to reproduce the behavior:
@Description(useJavaDoc = true)
to an existing JUnit4 test case. e.g.Expected behavior
See the Javadoc as description in the report for the SimpleTest method simpleTestWithDescriptionFromJavadoc.
Screenshots
![Allure_JUnit4_NoDescriptionFromJavadoc](https://user-images.githubusercontent.com/23717010/85575613-fd754900-b637-11ea-9b78-56e35dfb3417.png)
Environment (please complete the following information):
There is a sample project available as fork from the allure-junit-sample project:
https://github.com/focbenz/allure-junit-example/tree/bug/javadoc-description-not-in-report
Additional context
But:
The text was updated successfully, but these errors were encountered: