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 50621 - JUnit tests not compiled in clean and build
Summary: JUnit tests not compiled in clean and build
Status: RESOLVED DUPLICATE of bug 51544
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: jrojcek
Keywords: UI
Depends on:
Blocks: 41537
  Show dependency tree
Reported: 2004-10-19 14:55 UTC by moizd
Modified: 2004-12-15 20:39 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 moizd 2004-10-19 14:55:40 UTC
I have JUnit tests created for my classes. When i
do a clean an build i do not see the junit classes
being compiled in the test\classes folders.

They get compiled only when i run them.
Comment 1 Ondrej Rypacek 2004-10-20 15:27:11 UTC
reassigning to the responsible module
Comment 2 David Konecny 2004-10-20 16:52:17 UTC
As designed. Tests are compiled only before their execution.
Comment 3 moizd 2004-10-25 02:21:34 UTC
Then, IMO, there needs to be a build-only target for building tests
without having to run them. Sometimes, i may only want to check the
tests for build errors. 

The tests could also take a long time to complete and i would have to
terminate them mid-way. And in some cases terminating tests mid-way
may require some cleanup.
Comment 4 David Konecny 2004-10-25 16:13:36 UTC
There is such a target: compile-test

Is that enough or are you suggesting having an action for this target
somewhere in UI?
Comment 5 Jesse Glick 2004-10-25 19:09:46 UTC
Currently this target can be run from build.xml (e.g. its context
menu). Is reporter requesting a direct GUI binding e.g. in context
menu of project node? If so, leave open as RFE, if not, close as INVALID.
Comment 6 Jesse Glick 2004-10-25 19:10:12 UTC
Fixing component.
Comment 7 moizd 2004-11-02 14:16:59 UTC
I am looking for a way to build tests using the UI. I think that is a
necessary feature.
Comment 8 moizd 2004-11-10 06:48:02 UTC
There is a compile-test target in the ant file. But users should not
be exposed to ant related internals. A Project menu should be provided.
Comment 9 Jesse Glick 2004-12-15 20:39:02 UTC

*** This issue has been marked as a duplicate of 51544 ***