Issue
I have a Spring MVC project using IntelliJ IDEA 14 as my IDE (I'm new to IntelliJ IDEA; I used href="http://en.wikipedia.org/wiki/Eclipse_%28software%29" rel="noreferrer">Eclipse).
My main Java code is in folder src/main
, and the unit test code is in src/test
. While deploying the project, I found that all the unit tests are executed.
How can I skip all the unit tests while deploying the project into Tomcat?
Solution
In case you are using Maven
, on the View
> Tool Windows
> Maven Projects
click on the button shown below ( called Skip Tests Mode
). Essentially it is taking the test
phase out of the lifecycle when you say run package
.
Answered By - dimitrisli
Answer Checked By - Senaida (JavaFixing Volunteer)