[ https://issues.apache.org/jira/browse/SUREFIRE-1917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marco Brandizi updated SUREFIRE-1917: ------------------------------------- Description: I've been using a Junit 4.x [listener|https://github.com/marco-brandizi/jutils/blob/master/jutils/src/main/java/uk/ac/ebi/utils/test/junit/TestOutputDecorator.java] for years, to wrap every test method run with nice header/trailer decorations. I've been doing this by adding the dependency to the listener class in the surefire's <plugin> section and then using the property listener. I've just discovered that this doesn't work anymore with 3.0.0-M5 version: it says that the listener's ClassNotFoundException for the listener class. You can verify this with the attached simple project. Using it, I've tried several older versions until I found that the latest working is 2.19.1, the 2.20.1 raises a NullPointerEx and I didn't get exactly where (see the .out in the attachment). was: I've been using a Junit 4.x [listener|https://github.com/marco-brandizi/jutils/blob/master/jutils/src/main/java/uk/ac/ebi/utils/test/junit/TestOutputDecorator.java] that wraps every test method with nice header/trailer decorations. I've been doing this by adding the dependency to the class in the surefire's <plugin> section and then using the property listener. I've just discovered that this doesn't work anymore with 3.0.0-M5 version: it says that the listener's ClassNotFoundException for the listener class. You can verify this with the attached simple project. Using it, I've tried several older versions until I found that the latest working is 2.19.1, the 2.20.1 raises a NullPointerEx and I didn't get exactly where (see the .out in the attachment). > Surefire plug-in level dependency doesn't work > ---------------------------------------------- > > Key: SUREFIRE-1917 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1917 > Project: Maven Surefire > Issue Type: Bug > Components: Junit 4.x support > Affects Versions: 3.0.0-M5 > Environment: 18:41:33 [root@MAC10143-ROTH tmp]# mvn -v > Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) > Maven home: /usr/local/Cellar/maven/3.6.3/libexec > Java version: 11.0.10, vendor: AdoptOpenJDK, runtime: > /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home > Default locale: en_GB, platform encoding: UTF-8 > OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac" > 18:48:39 [root@MAC10143-ROTH tmp]# > Reporter: Marco Brandizi > Priority: Major > Attachments: junit-deptest.zip > > > I've been using a Junit 4.x > [listener|https://github.com/marco-brandizi/jutils/blob/master/jutils/src/main/java/uk/ac/ebi/utils/test/junit/TestOutputDecorator.java] > for years, to wrap every test method run with nice header/trailer > decorations. > I've been doing this by adding the dependency to the listener class in the > surefire's <plugin> section and then using the property listener. > I've just discovered that this doesn't work anymore with 3.0.0-M5 version: it > says that the listener's ClassNotFoundException for the listener class. > You can verify this with the attached simple project. > Using it, I've tried several older versions until I found that the latest > working is 2.19.1, the 2.20.1 raises a NullPointerEx and I didn't get exactly > where (see the .out in the attachment). > -- This message was sent by Atlassian Jira (v8.3.4#803005)