Hi

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

thanks

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.