Error while running JUnit test from command line?

You need to specify the name of the class on the command line, not the filename.

You need to specify the name of the class on the command line, not the filename: java org.junit.runner. JUnitCore com.org.tests. Nav From the javadoc for JUnitCore: JUnitCore is a facade for running tests.It supports running JUnit 4 tests, JUnit 3.8. X tests, and mixtures.

To run tests from the command line, run java org.junit.runner. JUnitCore TestClass1 TestClass2 .... For one-shot test runs, use the static method runClasses(Class). If you want to add special listeners, create an instance of org.junit.runner.

JUnitCore first and use it to run the tests. And you will have to add the bin directory (note NOT the src) to the classpath of the command line as well. This may look like: java -cp C:\eclipse\eclipse-java-helios-SR1-win32\eclipse\JunitWS\SeleniumTraining\bin org.junit.runner.

JUnitCore com.org.tests.Nav.

Thanks Matthew . I changed the path as you sugested and now it is working fine. Thanks a lot .

– Parag M Nov 21 at 9:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions