Menu

Skip Running Tests from Maven Build

There are multiple ways to skip the execution of the tests from a Maven project. So that at the time of build it doesn't compile the unit tests. Following are the steps using that you can skip the unit test compilation.

1. The first way is; while compiling or building the project using mvn install command. There are two commands that you can use on the command line to skip the tests running.

a. -DskipTests

b. -Dmaven.test.skip=true

2. Another way is to add the skipTests configuration in POM.xml file within the maven-surefire-plugin plugin. Below is the plugin code snippet for POM file.

     <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.12.4</version>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>

Reference

  1. Skipping Tests - Maven

15 comments:

  1. This tool will be helpful for all writers, digital media professionals, communication specialists, bloggers, forum moderators, online sales, or any other professional.Frames Per Second

    ReplyDelete
  2. This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea. also, you can check google play point

    ReplyDelete
  3. This article gives the light in which we can observe the reality. This is very nice one and gives in depth information. Thanks for this nice article. I am also share with everyone my work experience to in my blog so visit Gay Test

    ReplyDelete
  4. I appreciate to your writing. and here is a quick test of coloblindness

    ReplyDelete
  5. I appreciate to your writing. intresting and informative blog . contend about business is given. visit our site and check out your color blind test
    coloblindness

    ReplyDelete
  6. Very interesting, good job and thanks for sharing such a good blog. Your article is so convincing that I never stop myself to say something about it. You’re doing a great job. click here color blindness test.

    ReplyDelete
  7. Found your post interesting to read. I cant wait to see your post soon. Good Luck for the upcoming update. This article is really very interesting and effective. Look at this very wonderful website gender test.

    ReplyDelete
  8. Important info. You are regularly giving us good content. Its like I'm addicted to your blog thank you. And I would like to suggest you a software for Compressing and archive files and data. You can check online gender test.

    ReplyDelete
  9. Important info. You are regularly giving us good content. Its like I'm addicted to your blog thank you. And I would like to suggest you a software for Compressing and archive files and data. You can check online gender test.

    ReplyDelete
  10. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often how gay am I test

    ReplyDelete
  11. Thanks for the informative article.This is one of the best tips in my life. I have in quite some time.Nicely written and great info.I really cannot thank you enough for sharing. Taκе a look at mу ωeb site reaction speed test

    ReplyDelete
  12. The content of your blog is exactly what I needed, I like your blog, I sincerely hope that your blog a rapid increase in traffic density, which help promote your blog and we hope that your blog is being updated. Taκе a look at mу ωeb site reaction speed test they also posted a usefull blog.

    ReplyDelete
  13. Dear Admin, I have visited a lots of site but you are the best that I have ever seen. I have also this related site. Thanks for this informative article, I hope you will get most positive response specially for this post Taκе a look at mу ωeb site improve reaction time

    ReplyDelete
  14. This is very interesting blog and very helpful for newcomers . Thanks for sharing this great and helpful information . I am a gamer and I would like to suggest to you something which is really interesting. Reaction Time Test

    ReplyDelete