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.
Junit tests added to a web project cannot be compiled: compile action is disabled (menus, keyboard). Further there seems to be no UI for setting destination directory where unit tests get compiled to. The test directory is set using the Project Options UI as a Test Package Folder. Tried manually setting project.properties "have.tests", "build.test.classes.dir" and "build.test.results.dir" to suitable values, but no luck. Have searched and searched website and docs.... :-(
It has been fixed in early March - see duplicate issue 55798. If it doesn't work for you in latest builds, feel free to reopen. Thanks for report! *** This issue has been marked as a duplicate of 55798 ***
In NB4.1rc1 (build 200504200735): Can now build unit test, but they won't execute, since the target dir does not get set anywhere that I can find. As a result tests are compiled to the project root dir which is not in the runtime classpath, resulting ClassNotFoundException.
Which project type is it? If your project is 4.0 project, it can be duplicate of issue 58230 (see workaround there). I'll check Web project with existing sources.
Yep -- seems to be the same issue as 58230: It is a web project imported from 4.0. Thanks for the workaround. *** This issue has been marked as a duplicate of 58230 ***