[ 
https://issues.apache.org/jira/browse/SUREFIRE-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16758929#comment-16758929
 ] 

Tibor Digana commented on SUREFIRE-1546:
----------------------------------------

By default there would be current behavior.
By changing configuration, the user may enable the place where the display 
names would be printed:
+ in XML (classname, name)
+ in logs (<<class name>>, <<method name>>) on the first line
The configuration would not be a trivial parameter. It will be an object 
implementing Java interface and user would be able to implement it. We call it 
extensions. The reason is to expose Surefire internals for user and reimplement 
it without asking us in ASF to do it.
I would like to expose {{StatelessXmlReporter}} as an array or a collection of 
reporters and let the user to implement e.g. JSON for JUnit5.

{code:xml}
<statelessReporters>
    <statelessReporter 
implements="org.apache.maven.plugin.surefire.report.StatelessXmlReporter">
        call some setters here if really necessary - see the constructor but 
the constructor should be wrapped in context object
    </statelessReporter>
</statelessReporter>
{code}


> JUnit 5 runner does not honor JUnit 5 display names
> ---------------------------------------------------
>
>                 Key: SUREFIRE-1546
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1546
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 5.x support
>    Affects Versions: 2.22.0
>            Reporter: Romain Manni-Bucau
>            Assignee: Tibor Digana
>            Priority: Major
>              Labels: junit5
>             Fix For: 3.0.0-M4
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> JUnit 5 runner should respect the test @DisplayName instead of displaying the 
> classname if any is defined. Seems last release doesn't support that feature 
> of JUnit 5 making the console output and reports not the expected ones.
>  
> Origin: https://github.com/junit-team/junit5/issues/990



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to