Hi

Does nayone know how to test a test suite in cmd line? (in java)

thanks

Recommended Answers

JUnit 4.X

java -cp /usr/share/java/junit.jar org.junit.runner.JUnitCore [test class name]

JUnit 3.X

java -cp /usr/share/java/junit.jar junit.textui.TestRunner [test class name]
Jump to Post

All 2 Replies

JUnit 4.X

java -cp /usr/share/java/junit.jar org.junit.runner.JUnitCore [test class name]

JUnit 3.X

java -cp /usr/share/java/junit.jar junit.textui.TestRunner [test class name]

/usr/share/java/junit.jar
is the above same for every system?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.