命令行下怎么运行JUnit测试用例

2025-04-16 06:54:13
推荐回答(1个)
回答1:

运行JUnit测试脚本: java -cp [jar files separated by comma including junit jar file and your junit test case jar file] org.junit.runner.JUnitCore [your junit test case class] 例子: java -cp test.jar;../junit-4.8.1.jar org.junit.runner.JUnitCore test.RerunTest