kyan kyan - 14 days ago 5
Java Question

IntelliJ IDEA 14: How to skip tests while deploying project into Tomcat

I have a Spring MVC project using IntelliJ IDEA 14 as my IDE (I'm new to IntelliJ IDEA; I used 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?

Answer

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.

enter image description here

Comments