I have created an project with "JUnit Testing Framework" in Eclipse. Instead of running the program thro' Eclipse, i tried to run from external JAVA program.
I'm able to run Junit Project from Cmd line thro'
"java -cp "D:\Junit-4.10.jar" org.junit.runner.JUnitCore com.sample.mytestcase
I tried to use this above command in external JAVA program; like
Runtime.getRuntime().exec("java -cp 'D:\Junit-4.10.jar' org.junit.runner.JUnitCore com.sample.mytestcase");
Nothing seems to worked. Is there any other methods to trigger JUNIT project from another JAVA programs? Thanks in Advance.