[ BUILD # : 7.0 Beta 2 ]
[ JDK VERSION : 1.6.22 ]
Trying to compile an existing suite with dependencies or attemting to add the
dependencies throws an error about being unable to find the junit dependencies.
From the issue below it seems there are some places this needs to be addressed.
Is not clear enough to the user, at least for me, how to fix the issue.
Users upgrading to Beta 2 on their applications will encounter this issue as
long as they have unit testing on their application, which I assume most of
This seems related to issue 195123.
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.