Disable Maven Unit Test

Asked By 0 points N/A Posted on -
qa-featured

How can I disable the maven unit test? Because I am working locally on my project and the test executions are not required for the same. But I am not able to disable it, how can I do the same?

SHARE
Answered By 0 points N/A #318635

Disable Maven Unit Test

qa-featured

To disable Maven unit tests, simply pass -Dmaven.test.skip = true at the command prompt. Maven runs all tests as the default behavior. A test run is not necessary if we are working on site.

And then

OR you can make changes in your maven pom.xml file as

This will disable the Maven unit testing for the same.

Related Questions