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

ASF GitHub Bot commented on SUREFIRE-1194:
------------------------------------------

Github user juherr commented on the pull request:

    https://github.com/apache/maven-surefire/pull/107#issuecomment-160169598
  
    Current status:
    
    ```
    Tests in error: 
      testNgListenerReporter[3: TestNG 
5.13](org.apache.maven.surefire.its.CheckTestNgListenerReporterIT): Exit code 
was non-zero: 1; command line and log = (..)
      testNgListenerReporter[4: TestNG 
5.14.2](org.apache.maven.surefire.its.CheckTestNgListenerReporterIT): Exit code 
was non-zero: 1; command line and log = (..)
      testNgListenerReporter[5: TestNG 
5.14.3](org.apache.maven.surefire.its.CheckTestNgListenerReporterIT): Exit code 
was non-zero: 1; command line and log = (..)
    ```
    
    Due to:
    
    ```
    [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.20-SNAPSHOT:test 
(default-test) on project testng-listener-reporter: Execution default-test of 
goal org.apache.maven.plugins:maven-surefire-plugin:2.20-SNAPSHOT:test failed: 
There was an error in the forked process
    [ERROR] java.lang.NoClassDefFoundError: 
com/beust/jcommander/ParameterException
    [ERROR] at 
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:83)
    [ERROR] at 
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:134)
    [ERROR] at 
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:118)
    [ERROR] at 
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:152)
    [ERROR] at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
    [ERROR] at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
    [ERROR] at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
    [ERROR] Caused by: java.lang.ClassNotFoundException: 
com.beust.jcommander.ParameterException
    [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    [ERROR] at java.security.AccessController.doPrivileged(Native Method)
    [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    [ERROR] ... 7 more
    [ERROR] -> [Help 1]
    ```


> reporter argument does not work for TestNG
> ------------------------------------------
>
>                 Key: SUREFIRE-1194
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1194
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: TestNG support
>    Affects Versions: 2.19
>            Reporter: Testo Nakada
>            Assignee: Tibor Digana
>             Fix For: 2.19.1
>
>
> TestNG plugin seems to map -reporter command line parameter to reporterslist 
> which was removed in TestNG project since 2010 
> (a4779524b59330e98ee596c5faa43ae1b33ff844). Therefore, this configuration has 
> stopped working since then. The configuration mentioned in 
> http://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html#Using_Custom_Listeners_and_Reporters
>  does not work as expected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to