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.
Product Version: NetBeans IDE Dev (Build 200809040201) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb) Userdir: /tmp/ud ---------- - have a freeform project with sourceroot and testroot - invoke "run" on some test class - ide offers to generate target, confirm - however target is generated in order to run classes with main method, not to run unit tests. It would be nice to generate target which is able to run unit test , for classes under testroot
I'd like to keep this issue so far as enhancement, since generated targets was always kind of work in progress and targets were implemented due to their importance. It could be done by hand editing generated target for running the single file by replacing <java> target by something following: <junit dir="${work.dir}" fork="true" showoutput="true"> <batchtest todir="${test.results.dir}"> <fileset dir="${test.dir}" includes="${includes}"/> </batchtest> <classpath> <path path="${run.test.classpath}"/> </classpath> <formatter type="brief" usefile="false"/> <formatter type="xml"/> </junit> Properties of course needs to be modified according to particular project or replaced by their actual values.
*** Issue 127157 has been marked as a duplicate of this issue. ***
*** Issue 114817 has been marked as a duplicate of this issue. ***
Changing the default component owner to tzezula.