[英]How to prevent Intellij from showing me the org.testng.TestNGException (Test framework quit unexpectedly)
尝试在 intellij 中单独运行测试时出现以下异常。 我尝试运行的测试是在使用 Ant 构建的项目中编写的。 运行项目中所有单元测试的 Ant 目标成功运行,无一例外。 当我尝试运行 class 测试或单独测试时出现异常。
*org.testng.TestNGException:
Cannot find class in classpath: com.project.test.Test
at org.testng.xml.XmlClass.loadClass(XmlClass.java:74)*
有没有办法配置 intellij 以便它能够访问构建目录并找到它需要的 jars? 我正在使用最新版本的 Intellij。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.