How do I programmatically run all the JUnit tests in my Java application?

后端 未结 6 2052
逝去的感伤
逝去的感伤 2021-02-02 18:13

From Eclipse I can easily run all the JUnit tests in my application.

I would like to be able to run the tests on target systems from the application jar, without Eclipse

6条回答
  •  忘掉有多难
    2021-02-02 19:03

    You also could use ANT which has built-in task. Write ANT script and run it on target machine. ANT could create report as result.

提交回复
热议问题