Using Maven build configuration, we can configure it to skip test execution while building the source file. In eclipse we can check the checkbox labeled as 'Skip Test` and from command line we can use
mvn clean install -Dmaven.test.skip=true
The Skip test doesn't even compile the unit test source codes.
Is there any way to configure maven such that it will compile the unit test classes but doesn't execute it?
It compiles test classes when you specify -DskipTests
it just skips execution of tests
maven.test.skip
stops compilation of test classes
Documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With