title: How to Tests for a specific module under a project in Jenkins through maven?
body: <p>I use Jenkins to build my  project which has multiple modules. This project has a root pom.xml which build all the modules under that project. I specify this pom.xml as the root POM. </p>
  
  <p>Now I want to run tests as a <strong>"post-build step"</strong>. But, I don't want to run all the tests under all modules. I want to run tests only under a specific module. </p>
  
  <p>I tried using the shell command to change the directory to the module for which tests has to be run and then trigger maven. I also tried using the -f switch to specify the pom.xml for that particular module. Both of these steps are not working.</p>
  
  <p>Please help me guys in resolving this problem.</p>
  
  <p>Thanks</p>