[RemoteTestNG] detected TestNG version 6.8.9
Exception in thread "main" org.testng.TestNGException:
Cannot load class from file:
at org.testng.internal.ClassHelper.fileToClass(ClassHelper.java:519)
at org.testng.TestNG.configure(TestNG.java:1452)
at org.testng.remote.AbstractRemoteTestNG.configure(AbstractRemoteTestNG.java:75)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:235)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
解決辦法:
pom.xml中:
檢查maven-surefire-plugin的plugin慎冤,檢查property,name =?listener办成,value中的多個值不能換行偿枕,如果有換行或者空格较坛,刪除