title: Run all testng depending tests using mvn and surefire
body: <p>I have below class with three test methods. Method <code>b()</code> depends on method <code>a()</code>.</p>
  <pre><code>public class TestClass {
  
      @Test
      public void a() {
          System.out.println(&quot;a&quot;);
      }
  
      @Test(dependsOnMethods = &quot;a&quot;)
      public void b() {
          System.out.println(&quot;b&quot;);
      }
  
      @Test
      public void c() {
          System.out.println(&quot;c&quot;);
      }
  }
  </code></pre>
  <p>When I try to run command <code>mvn clean test -Dtest=TestClass#b</code> I'm receiving an error:</p>
  <pre><code>TestClass.b() is depending on method public void TestClass.a(), which is not annotated with @Test or not included.
  [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
  </code></pre>
  <p>Is it possible to configure surefire plugin to run all depending methods before? For example on <code>mvn clean test -Dtest=TestClass#b</code> command to run <code>a()</code> and then <code>b()</code> test?</p>