title: invoking only the required test in testng file while using ant
body: <p>I am trying to invoke tests of a testng.xml file from ant. </p>
  
  <p>My testng.xml looks like the following:</p>
  
  <pre><code>&lt;suite name="testsuite"&gt;
     bunch of parameters here
     &lt;test name="test1"&gt;
     &lt;/test&gt;
  
     &lt;test name="test2"&gt;
     &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>Now, I want to run only the "test1" tests and not those of "test2". Is there a way (parameter?) to tell the ant build.xml file to do this?</p>
  
  <pre><code>&lt;testng classpathref="testng.class.path" delegateCommandSystemProperties="true" 
              outputDir="${test-output}" haltOnfailure="false" useDefaultListeners="true" 
              parallel="methods"
              failureproperty="test.failure"&gt;
              &lt;xmlfileset file="testng.xml"/&gt;
              &lt;!--forked JVM OOM issue--&gt;
              &lt;jvmarg value="-Xmx512M"/&gt;
              &lt;jvmarg value="-Xms512M"/&gt;
              &lt;jvmarg value="-Xmn192M"/&gt;
              &lt;jvmarg value="-XX:PermSize=128M"/&gt;
              &lt;jvmarg value="-XX:MaxPermSize=128M"/&gt;
  
          &lt;/testng&gt;
  </code></pre>