maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SUREFIRE-1639) Add ability to configure TestExecutionListener
Date Thu, 14 Feb 2019 16:31:00 GMT

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

Vincent Massol commented on SUREFIRE-1639:
------------------------------------------

My use case: I need to convert a Junit4 RunListener to a Junit5 TestExecutionListener and
I cannot use the service loader mechanism (see https://gitter.im/junit-team/junit5?at=5c65921f5095f6660cf328e7
for details).

This listener is controlled by a maven property and when you execute tests in your IDE, the
listener should not execute if the property is set to skip in the maven pom.xml for the current
module. With service loader it's always loaded and I can't check the maven property easily
at runtime (I could but it's complex).

> Add ability to configure TestExecutionListener
> ----------------------------------------------
>
>                 Key: SUREFIRE-1639
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1639
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: JUnit 5.x support
>    Affects Versions: 2.22.1
>            Reporter: Vincent Massol
>            Priority: Major
>
> In a similar what that it was possible to configure RunListener with Junit4:
> {code}
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <configuration>
>           <properties>
>             <property>
>               <name>listener</name>
>               <value>org.xwiki.test.CaptureConsoleRunListener</value>
>             </property>
>           </properties>
> ...
> {code}



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

Mime
View raw message