title: How to Run TestNG Tests on Jenkins
body: <p>I'm trying to run TestNG tests (in a contained Java project) from Jenkins but having no luck.</p>
  <p>It appears as though the TestNG plugin for Jenkins (<a href="https://wiki.jenkins-ci.org/display/JENKINS/testng-plugin" rel="nofollow noreferrer">https://wiki.jenkins-ci.org/display/JENKINS/testng-plugin</a>) only publishes the results of TestNG tests, but doesn't actually run test classes... or am I wrong?</p>
  <p>In any case, how do I actually run TestNG tests in a TestNG project with Jenkins, or is that even possible?  Do I have to use a command line statement or batch file (on Windows Server 2008), for example?</p>
  <p>Any help much appreciated.</p>
  <p><strong>Note</strong> I tried entering a post-build command line in Jenkins for the project to run TestNG tests but had a hard time with class paths not being found for TestNG.  I posted an earlier question about running TestNG from the command line which I couldn't get working, so I've given up on that route:</p>
  <p><a href="https://stackoverflow.com/questions/11896791/how-to-run-testng-from-dos-prompt">How to run TestNG from command line</a></p>