Java – Running Tomcat Server Intellij skips the test class

Running Tomcat Server Intellij skips the test class… here is a solution to the problem.

Running Tomcat Server Intellij skips the test class

I have successfully deployed the tomcat server, but the problem is when building the artifact. The process still includes test catalog output, even if I include skip tests in Maven Pom and try to toggle skip tests in Maven Pom. There are also no test modules in Artifact. Works fine in the Eclipse server, despite errors in the test class. Thank you.

Here my settings for tomcat

Here is my work:
enter image description here

Solution

I found a solution to make the project exclude the test class. Simply add the test directories you want to exclude in File –> Settings –> Build, Execution, Deployment –> Compiler –> Excludes –>

Related Problems and Solutions