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.
netbeans-5.5beta2 Steps: 1. Create module project. 2. Tools / Create JUnit tests. 3. Compile it. The build fails and the Output window shows: "Failed to prepare tests" which means that this is a regression in issue #73397. The Output window says: D:\netbeans-5.5beta2\harness\build.xml:115: Cannot resolve path D:\netbeans-5.5beta2\..\..\xtest\lib\junit.jar so I manually added a dependency for the "Junit Tests" module. Then I see: D:\netbeans-5.5beta2\harness\build.xml:66: The module org.yourorghere.module10 is not a friend of D:\netbeans-5.5beta2\ide7\modules\org-netbeans-modules-junit.jar I don't know if this the same as issue #77907 (and issue #62325), but if so, I'd think this would have been fixed in beta2. If you use a wizard to set up the tests, it should set everything up for you.
Works for me in a 5.5 dev build. Please, before filing bug reports, check again in a development build. I don't know if you're seeing issue #77907 but that was fixed in the release55 branch at some point and still seems to be working.
Can reproduce only if IDE is installed into a top-level subdir of the drive. E.g. on Linux, if IDE installed in /froggle, get [....] /froggle/harness/build.xml:133: Cannot resolve path /froggle/../../xtest/lib/junit.jar at org.apache.tools.ant.util.FileUtils.normalize(FileUtils.java:817) at org.apache.tools.ant.util.FileUtils.resolveFile(FileUtils.java:684) at org.apache.tools.ant.Project.resolveFile(Project.java:1292) at org.apache.tools.ant.IntrospectionHelper$7.set(IntrospectionHelper.java:983) at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:393) [....]
Will fix for Ant 1.7. Then runs with harmless warning Path element /froggle/../../xtest/lib/junit.jar doesn't exist. Possible release note: ---%<--- If your IDE is installed in a top-level directory on your disk - e.g. /netbeans on Unix, or C:\NetBeans on Windows - running unit tests for NetBeans module projects will fail with the message 'Cannot resolve path <install>/../../xtest/lib/junit.jar'. Workarounds: use Ant 1.7; or (recommended) install NetBeans in at least a second-level directory such as C:\NetBeans\5.5; or override target 'test-lib-init' in your module's build.xml to be a copy of the original target minus lines containing 'xtest'. ---%<---