在JUnit 5 ConsoleLauncher中未发现测试,没有错误

时间:2018-06-06 22:22:37

标签: java appium junit5

我尝试使用JUnit 5 ConsoleLauncher运行一组使用JUnit 5的Appium测试。我可以通过GUI使用默认运行程序在IntelliJ IDEA中成功运行测试。

ConsoleLauncher在运行时不会出现任何错误,但它实际上也没有发现/运行任何测试。

ConsoleLauncher output

这是我使用的命令:

java -jar junit-platform-console-standalone-1.2.0.jar -cp . -cp C:\Users\user\.m2\repository\org\seleniumhq\selenium\selenium-api\3.11.0\selenium-api-3.11.0.jar -c com.test.package.testsets.TestClass

由于这个错误,我不得不添加selenium-api的路径:

  

java.lang.ClassNotFoundException:org.openqa.selenium.Capabilities

我一直在对此进行故障排除,并在一段时间内使用不同的选项,但没有任何运气。我猜这是我的用户错误,但我不确定此时要尝试的是什么。任何人都知道我可能做错了什么?

由于

0 个答案:

没有答案