How to run JUnit test cases from the command line

前端 未结 11 1574
花落未央
花落未央 2020-11-22 02:09

I would like to run JUnit test cases from the command line. How can I do this?

11条回答
  •  孤街浪徒
    2020-11-22 02:48

    Alternatively you can use the following methods in JunitCore class http://junit.sourceforge.net/javadoc/org/junit/runner/JUnitCore.html

    run (with Request , Class classes and Runner) or runClasses from your java file.

提交回复
热议问题