This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It is my understanding that if if I issue a Test File (Cmd-F6) or Debug Test File (Shift-Cmd-F6) that NetBeans will compile, if necessary, the class then attempt to run/debug the test, but I've found this spotty. With my project open, if I issue 'mvn clean install' from the command line, then try to test a file, I get something like this: java.lang.ClassNotFoundException: org.glassfish.admin.rest.JvmOptionsTest at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) If I then issue 'mvn test' from the command line, then retry my debug, it works. Furthermore, after I issue that, changes to the test are then compiled and picked up for debugging.
*** This bug has been marked as a duplicate of bug 189103 ***