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.
Summary: | Unable to compile RCP applications with JUnit dependencies | ||
---|---|---|---|
Product: | apisupport | Reporter: | javydreamercsw <javydreamercsw> |
Component: | Harness | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | anebuzelsky |
Priority: | P1 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
javydreamercsw
2011-02-07 19:13:45 UTC
JUnit was removed from the IDE and Platform. Running tests requires the org.netbeans.libs.junit4 wrapper module to be present (normally in the platform cluster). You can install JUnit in your IDE (e.g. by resolving references on a broken j2seproject) so that o.n.l.junit4 is present in your platform cluster, assuming you are compiling against the default platform. If you are using some other platform, you can install org-netbeans-libs-junit4.nbm from an older version of NB, say using the <autoupdate> task. core-main #a6536dfe3b4b also makes it possible to run basic unit tests just by making sure JUnit 4.8.2 is downloaded to your local Maven repo, though this may not work for functional tests using NbModuleSuite. This trick will not suffice e.g. for the in-IDE classpath, so this is mainly useful for CI jobs using a fixed netbeans.dest.dir. Refinements to the OOBE of JUnit-based testing are likely before 7.0 FCS, time permitting. |