Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Springboot turn off the unit test

Shulou Source: shulou.com Published: 2022-06-03 06:42:52 11月23日 Update

Environment: Springboot2.x, configured as follows

1. Mode one

True skips the test and does not generate class

True skips tests but generates test class

Org.apache.maven.plugins maven-surefire-plugin org.springframework springloaded 1.2.8.RELEASE True 2. Method 2 (recommended)

True skips the test and does not generate class

True skips tests but generates test class

The spring-boot-maven-plugin plug-in has integrated the maven-surefire-plugin plug-in and automatically runs Junit test, so disable automatic unit tests and simply call true or true

Org.springframework.boot spring-boot-maven-plugin org.springframework springloaded 1.2.8.RELEASE true

Tags: Test build plug-in mode unit environment recommendation run configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL MariaDB macOS Apple Redmi