查找classpath Maven用于运行Testng测试用例 [英] Find classpath maven is using for running testng testcase
本文介绍了查找classpath Maven用于运行Testng测试用例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以使用maven的哪些选项来确定哪个classpath maven正在运行testng测试用例?
what options to maven can I use to determine what classpath maven is running a testng test case with?
推荐答案
您没有提供Maven版本,但是至少在3.x(也许还有2.x)中,您可以使用-X(调试)选项.这样,在运行测试之前就可以打印出测试类路径.
You didn't provide the Maven version, but at least in 3.x (and maybe also 2.x) you can run commands with the -X (debug) option. That way the Test Classpath is printed out before tests are run.
mvn test -X
这篇关于查找classpath Maven用于运行Testng测试用例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文