1

I am getting following error while running mvn test on project

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project tcw-fip-mbp: There are test failures. [ERROR]

[ERROR] Please refer to C:\Project\workspace\RegRep2\TCW\MBP\target\surefire-reports for the individual test results. [ERROR]

-> [Help 1] [ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

4

2 回答 2

1

Please refer to C:\Project\workspace\RegRep2\TCW\MBP\target\surefire-reports for the individual test results. 该目录包含每个测试的输出和所有结果。这应该是您寻求使测试成功的开始。

于 2013-10-09T17:16:37.313 回答
0

您也可以通过在pom.xml文件中添加插件来解决它

 <plugin>  
    <groupId>org.apache.maven.plugins</groupId>  
    <artifactId>maven-surefire-plugin</artifactId>  
    <version>2.22.2</version>  
    <configuration>  
      <skipTests>true</skipTests>  
    </configuration>  
 </plugin> 
于 2022-02-27T05:52:28.890 回答