In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "springboot packaging how to ignore Test unit testing". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Springboot packaging ignores Test unit tests
Add configuration to maven pom.xml:
Org.apache.maven.plugins maven-surefire-plugin 2.20.1 true spring boot skips maven test
Every time you use run as-> maven install in eclipse, you always run junit test. Some test are also associated with databases, and some are dangerous. How to skip the test skip test?
The spring-boot- maven- plugin plug-in has integrated the maven-surefire-plugin plug-in
Just need to add in pom.xml
True
What needs to be noticed here is maven.test.skip, which skips all classes related to test and does not generate .class. If you allow junit testing, you will find ClassNotFound errors.
SkipTests compiles the test class, generating .class files, but instead of running the test class, you can run the test class manually.
In the past, when you didn't use spring boot, you skipped maven test like this, adding it to pom.xml:
Org.apache.maven.plugins maven-surefire-plugin 2.12.4 true, "how springboot packaging ignores Test unit testing" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.