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 178481

Summary: No way to declare test deps without including module in final ZIP
Product: apisupport Reporter: Jaroslav Tulach <jtulach>
Component: HarnessAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jglick
Priority: P4    
Version: 6.x   
Hardware: Other   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: The skeletal suite

Description Jaroslav Tulach 2009-12-11 06:56:29 UTC
Created attachment 92417 [details]
The skeletal suite

If I create module suite (uses only platform cluster) and put there one module with a NbJUnitTest I seem to have problem:

Either the test cannot be compiled (it does not see NbJUnit, as it is in disabled cluster). Just invoke the Test All on the suite to see the error.

Or I can add harness as my enabled cluster, but then it gets (fully) included in my final application. That is annoying, I am not using anything from that (big due to cobertura binaries) cluster. So no harness shall be included in my application.

I am attaching the skeleton of my empty suite with a test.
Comment 1 Jesse Glick 2009-12-11 08:35:12 UTC
There is no mechanism for using modules only as test dependencies and not being part of the suite. We could consider adding one, though I would rather recommend you use Maven which deals with this better.
Comment 2 Jaroslav Tulach 2009-12-11 08:54:27 UTC
Ok, I rechecked the problem. Originally the cobertura JARs were included in spite I did not want to use them, but I guess I had to do something wrong, now (when I check just nbjunit and insane), cobertura is not in the ZIP.

This is acceptable, nbjunit is not that big by itself.
Comment 3 Jaroslav Tulach 2013-01-10 08:20:39 UTC
Reporter agrees the behavior is acceptable.