matty-r opened a new issue, #6737:
URL: https://github.com/apache/netbeans/issues/6737

   ### Apache NetBeans version
   
   Apache NetBeans 19
   
   ### What happened
   
   Attempt to run tests with TestNG installed in the classpath, I get the 
following error
   
   Exception in thread "main" org.testng.TestNGException:
   Couldn't find a constructor in class org.testng.reporters.VerboseReporter
                   at 
org.testng.internal.objects.InstanceCreator.newInstance(instancecreator.java:57)
                   at 
org.testng.ITestObjectFactory.newInstance(itestobjectfactory.java:10)
   
   ....
   
   ### How to reproduce
   
   Install TestNG with required dependencies and run a test.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows
   
   ### JDK
   
   17
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   It works correctly if I run the test via a Test Runner, but if I right click 
and select run file or test file it throws that error. 
   I narrowed it down to the TestNGAntTask in the build-impl.XML file where the 
listeners attribute has the VerboseReporter package listed - if I remove that 
it works. 
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to