nils-christian opened a new issue, #3226:
URL: https://github.com/apache/maven-surefire/issues/3226

   ### Affected version
   
   3.5.4
   
   ### Bug description
   
   Hi,
   
   Consider the following JUnit5 test case:
   
   ```java
   @DisplayName( "NewName" )
   public class MyTest {
   
        @Test
        public void myTest( ) {
        }
   
   }
   ```
   
   In the default surefire report the class name of the test case is "NewName". 
We tried to change this behaviour to the actual class name ("MyTest") with the 
JUnit5Xml30StatelessReporter.
   
   ```xml
    <plugin>
     <artifactId>maven-surefire-plugin</artifactId>
     <configuration>
       <statelessTestsetReporter 
implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
                           <disable>false</disable>
                           <usePhrasedFileName>false</usePhrasedFileName>
                           
<usePhrasedTestSuiteClassName>false</usePhrasedTestSuiteClassName>
                           
<usePhrasedTestCaseClassName>false</usePhrasedTestCaseClassName>
                           
<usePhrasedTestCaseMethodName>false</usePhrasedTestCaseMethodName>
     </statelessTestsetReporter>
   </configuration>
   ```
   
   This however does not seem to have any effect. Changing the 
"usePhrasedFileName" to "true" does, so I don't think that the plugin is 
incorrectly configured. 
   
   Is our assumption incorrect that the class name in the resulting report 
should be changed by this or is this is bug?
   
   Thank you and best regards
   
     Nils
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to