You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2020/12/29 15:06:09 UTC

[GitHub] [netbeans] jtulach opened a new pull request #2615: Process test classes before executing single test

jtulach opened a new pull request #2615:
URL: https://github.com/apache/netbeans/pull/2615


   I cannot run/debug tests in [HTML/Java API](https://github.com/apache/netbeans-html4j/tree/master/generic) because they use `@JavaScriptBody` annotation and require post-processing. However, by default Maven doesn't invoke `process-test-classes` before execution. I was considering to fix it by writing `nbactions.xml` file, but it seems better to make it default, which is what this PR does.
   
   ![obrazek](https://user-images.githubusercontent.com/1842422/103293075-75f60180-49ef-11eb-9230-a3e48f79b82e.png)
   
   Current failure is:
   ```
   -------------------------------------------------------
   Running org.netbeans.html.presenters.spi.test.GenericTest
   Configuring TestNG with: TestNG652Configurator
   SEVERE: When using @JavaScriptBody methods, one needs to either:
    - include asm-5.0.jar on runtime classpath
    - post process classes, see http://bits.netbeans.org/html+java/dev/net/java/html/js/package-summary.html#post-process
   However following classes has not been processed from file:/home/devel/NetBeansProjects/netbeans-html4j/generic/target/test-classes/META-INF/net.java.html.js.classes
     org.netbeans.html.presenters.spi.test.Counter
   Cannot initialize asm-5.0.jar!
   
   java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
   	at java.lang.Class.forName0(Native Method)
   	at java.lang.Class.forName(Class.java:264)
   	at org.netbeans.html.boot.impl.FnContext.newLoader(FnContext.java:57)
   	at net.java.html.boot.BrowserBuilder.showAndWait(BrowserBuilder.java:288)
   	at org.netbeans.html.presenters.spi.test.GenericTest$1.run(GenericTest.java:51)
   	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
   	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
   	... 10 more
   ```
   
   with the patch in this PR the "Test File" action works.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


[GitHub] [netbeans] matthiasblaesing commented on pull request #2615: Process test classes before executing single test

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on pull request #2615:
URL: https://github.com/apache/netbeans/pull/2615#issuecomment-752113487


   Looks sane to me.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


[GitHub] [netbeans] JaroslavTulach merged pull request #2615: Process test classes before executing single test

Posted by GitBox <gi...@apache.org>.
JaroslavTulach merged pull request #2615:
URL: https://github.com/apache/netbeans/pull/2615


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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