且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

TestNG的Ant任务Mac OS X上失败,错误:没有测试套件中

更新时间:2023-09-26 15:44:10

这个问题发生的原因是ReportNG依赖使用maven的ant任务也宣布在其上正在捞起第一个古老的TestNG的版本的依赖正在下载类路径和导致TestNG的Ant目标失败。

The issue happened due to a ReportNG dependency being downloading using the maven ant task which also declares a dependency on an ancient TestNG version which was being picked up first in the classpath and causing the testng ant target to fail.

我跑进在的Windows最近。 ,并挣扎一段时间后发现什么问题是..我试图使用maven的依赖ant任务导入ReportNG依赖......它正在下载一个旧版本的TestNG的......正如马尔钦Zajączkowski的使用reportNG在Maven中你需要排除的传递依赖TestNG的。我不知道,如果使用ant的maven任务时,有一个代名词修复可能的。

I ran into a similar issue on Windows recently .. and after floundering for a while discovered what the issue was.. I was attempting importing the ReportNG dependency using the maven dependency ant task... and it was downloading an old version of TestNG... As noted by Marcin Zajączkowski to use reportNG in maven you need to exclude the transitive TestNG dependency.. I don't know if there's a synonymous fix possible when using the ant maven task.

推荐文章