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

Summary: JUnit tests not compiled in clean and build
Product: java Reporter: moizd <moizd>
Component: ProjectAssignee: jrojcek <jrojcek>
Status: RESOLVED DUPLICATE    
Severity: blocker Keywords: UI
Priority: P4    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    

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 ***