title: How to run testNG tests using Maven POM file
body: <p>I have a Selenium project, using Maven and TestNG.</p>
  
  <p>I have tried several different methods of getting my tests to run with a Maven command (I'm using the sure fire plugin).
  When I run Maven the tests do not run.  There are no errors.</p>
  
  <p>Has anyone got a good example or a tutorial that I could follow to get my test to run when I use mvn test?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Here is the output:</p>
  
  <pre><code>C:\**************&gt;mvn test
  [INFO] Scanning for projects...
  [INFO] ------------------------------------------------------------------------
  [INFO] Building Unnamed - **************:**************:jar:1.0
  [INFO]    task-segment: [test]
  [INFO] ------------------------------------------------------------------------
  [INFO] [resources:resources]
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
  i.e. build is platform dependent!
  [INFO] Copying 4 resources
  [INFO] [compiler:compile]
  [INFO] Nothing to compile - all classes are up to date
  [INFO] [resources:testResources]
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
  i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory C:\**************\src\test\res
  ources
  [INFO] [compiler:testCompile]
  [INFO] Nothing to compile - all classes are up to date
  [INFO] [surefire:test]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESSFUL
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2 seconds
  [INFO] Finished at: Tue Oct 02 15:14:10 BST 2012
  [INFO] Final Memory: 16M/38M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>And the surefire configuration from my POM file:</p>
  
  <pre><code>&lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;encoding&gt;iso-8859-1&lt;/encoding&gt;
                      &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.12.4&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;suiteXmlFiles&gt;
                      &lt;suiteXmlFile&gt;src/main/test_suites/local/***_Test.xml&lt;/suiteXmlFile&gt;
                  &lt;/suiteXmlFiles&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>