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.
Summary: | Cannot influence runtime path of unit tests | ||
---|---|---|---|
Product: | apisupport | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Harness | Assignee: | Jesse Glick <jglick> |
Status: | VERIFIED DUPLICATE | ||
Severity: | blocker | CC: | jskrivanek |
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 54161 | ||
Bug Blocks: |
Description
Jaroslav Tulach
2006-02-19 07:39:00 UTC
To add to the test classpath you should append to ${test.unit.run.cp.extra}, not add module deps. See issue #54161 for more thoughts. *** This issue has been marked as a duplicate of 54161 *** "The classpath of junit should be composed from runtime classpath of the project, at minimum." The reason I said "at minimum" is that we can wait for ages till issue 54161 is implemented, but we do not need to - it is enough to base the unit classpath on the compilation path, which imho should be pretty easy to fix. May be easy or not (haven't checked yet), but in any rate wouldn't have helped you in this case; you should not have been adding a module dep at all for something that was only needed by unit tests. I want to understand why runtime of junit tests is not using runtime module dependencies. Until this gets trustfully explained, I have to consider the behaviour to be a bug. By design currently. *** This issue has been marked as a duplicate of 54161 *** verified duplicate. |