从命令行运行JUnit [英] Running JUnit from the command line
本文介绍了从命令行运行JUnit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
如何从命令行运行Junit测试用例?
Possible Duplicate:
How to run Junit testcases from command line?
如何在Linux中从命令行运行JUnit?
How can I run JUnit from the command line in Linux?
推荐答案
此处您将找到一种实现方法.
Here you will find a way to do that.
如 JUnit常见问题解答所述:
如何从命令运行JUnit 窗口?
-
设置您的CLASSPATH
Set your CLASSPATH
通过"java org.junit.runner.JUnitCore(测试类名称)"调用跑步者
Invoke the runner by "java org.junit.runner.JUnitCore (test class name)"
这篇关于从命令行运行JUnit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文