Run JUnit Test suite from command line

后端 未结 4 1106
无人及你
无人及你 2021-01-12 19:33

How do I run a Junit 4.8.1 Test suite from command line ? Also I want to use the categories introduces with JUnit 4.8 , is there a way where I can specify from command line

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-12 19:43

    I can suggest two approaches: 1. Create Ant file with junit target and then invoke this target from commend line. 2. Implement test suite class, in it in some class with main() method. So you will be able to run it.

提交回复
热议问题