How to run JUnit test cases from the command line

前端 未结 11 1701
花落未央
花落未央 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:36

    If you project is ant based then you should be able to do something like this from the console:

    ant test
    

    If this doesn't work, but still your project is ant based, you can run ant -p to list the main targets of the project.

提交回复
热议问题