kyan kyan - 1 year ago 166
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

, and the unit test code is in
. 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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download