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?