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.

Bug 146200 - Generate run-single-test target for freeform projects
Summary: Generate run-single-test target for freeform projects
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Freeform (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
: 114817 127157 (view as bug list)
Depends on:
Reported: 2008-09-04 15:21 UTC by Tomas Danek
Modified: 2010-01-11 04:29 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2008-09-04 15:21:11 UTC
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
Comment 1 Milan Kubec 2008-09-05 11:06:48 UTC
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}"/>
        <path path="${run.test.classpath}"/>
    <formatter type="brief" usefile="false"/>
    <formatter type="xml"/>

Properties of course needs to be modified according to particular project or replaced by their actual values.
Comment 2 Milan Kubec 2008-09-08 15:05:10 UTC
*** Issue 127157 has been marked as a duplicate of this issue. ***
Comment 3 Milan Kubec 2008-10-17 09:05:07 UTC
*** Issue 114817 has been marked as a duplicate of this issue. ***
Comment 4 Antonin Nebuzelsky 2010-01-11 04:29:12 UTC
Changing the default component owner to tzezula.