The vmargs I pass to the testRunner can be passed to the JunitTestCase .
My testcase requires jmockit to be initialized which I do with javaagent , but the vmargs I pass are not getting reflected in my testcase . Not sure if there is some way to get the vmargs to be set while running my testcase
java -cp bin;lib\junit3.8.1.jar;lib\JUnit-TestRunner.jar;c:\src\bin -methodsAsTestCases -javaagent c:\src\jmockit.jar org.codecover.junit3.swing.TestRunner com.testMyApp