Running JUnit from the command line [duplicate]

2019-05-26 15:36发布

问题:

Possible Duplicate:
How to run Junit testcases from command line?

How can I run JUnit from the command line in Linux?

回答1:

Here you will find a way to do that.

As stated on JUnit FAQ:

How do I run JUnit from my command window?

  1. Set your CLASSPATH

  2. Invoke the runner by "java org.junit.runner.JUnitCore (test class name)"



标签: junit