Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
2.4
-
None
-
None
Description
In some of my test cases I fork another JVM instance that must have the same classpath as the executed test. I use the system property java.class.path to get the classpath.
In Eclipse it works as expected, the system property java.class.path holds all the dependencies. But if I use Maven to run the tests, that system property holds just '/Users/mburger/bin/maven2/boot/classworlds-1.1.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/14compatibility.jar'.
AFAIK the system property java.class.path is read only, so Surefire cannot set it. But it would be very nice to have some fall back like surefire.java.class.path. In my test cases I could use that system property as fall back when java.class.path does not contain the expected JAR files.
Attachments
Issue Links
- is related to
-
SUREFIRE-510 surefire.test.class.path is not set when forkMode is always
-
- Closed
-