Last updated 5 years ago
Was this helpful?
exe1 in intellij:
exe2 in intellin:
spring boot+jpa+mvc
skip test in spring boot
<project> [...] <properties> ... <skipTests>true</skipTests> ... </properties> [...] <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skipTests>${skipTests}</skipTests> </configuration> </plugin> </plugins> </build> [...] </project>
To enable test, we use commandline:
mvn clean install -DskipTests=false
.