title: Run testNG on a maven test dependency
body: <p>I have a maven project that has a dependency on a test project. I would like to run testNG on this project:</p>
  
  <pre><code>&lt;groupId&gt;com.myGroup&lt;/groupId&gt;
  &lt;artifactId&gt;assembly&lt;/artifactId&gt;
  &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.testng&lt;/groupId&gt;
          &lt;artifactId&gt;testng&lt;/artifactId&gt;
          &lt;version&gt;6.4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.myGroup&lt;/groupId&gt;
          &lt;artifactId&gt;myArtifact&lt;/artifactId&gt;
          &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
          &lt;type&gt;test-jar&lt;/type&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&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;test&gt;MyTest&lt;/test&gt;
                  &lt;suiteXmlFiles&gt;
                      &lt;suiteXmlFile&gt;test-suites/all-test.xml&lt;/suiteXmlFile&gt;
                  &lt;/suiteXmlFiles&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>But nothing happens when I run <strong>mvn clean install</strong> on the above project. Is it possible to setup the maven-surefire-plugin to run testNG on eg. a binary dependency?</p>
  
  <p>EDIT:</p>
  
  <p>THis:</p>
  
  <p><a href="http://softwaremavens.blogspot.dk/2009/09/running-tests-from-maven-test-jar-in.html" rel="nofollow">http://softwaremavens.blogspot.dk/2009/09/running-tests-from-maven-test-jar-in.html</a></p>
  
  <p>seems to be spot on. Could be nice if it was possible to run the code directly from the dependency instead of having to unpack it.</p>