Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project XXX-dao: There are test failures.

原因是test包下还有XXXDaoApplicationTests的类,而我这个项目是dao层,已经把XXXDaoApplicationTests相关类都删除了。

解决办法就是把test下的XXXDaoApplicationTests类删除

@SpringBootTest
class XXXDaoApplicationTests {

   @Test
   void contextLoads() {
   }

}

 

解决前:

There are test failures

There are test failures

解决后:

There are test failures

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2021-07-25
  • 2022-12-23
  • 2021-05-08
  • 2021-07-23
  • 2022-01-17
猜你喜欢
  • 2021-06-20
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
相关资源
相似解决方案