title: How can I run a test suite using gradle from the command line
body: <p>I'm trying to use gradle to run tests with the following command but its not working</p>
  
  <pre><code>gradle cleanTest test --tests my.package.TestSuite
  </code></pre>
  
  <p>my test suite looks like the following</p>
  
  <pre><code>@RunWith(Suite.class)
  @Suite.SuiteClasses({
      ATests.class,
      BTests.class,
      CTests.class
  })
  public class MySuite {
    /* placeholder, use this to contain all integration tests in one spot * */
  }
  </code></pre>
  
  <p>trying to run the following command works, but aggravatingly enough, it runs each test twice. once by itself and then again under the test suite in that same namespace</p>
  
  <pre><code>gradle clean test --tests my.package.*
  </code></pre>
  
  <p>I could just drop the test suite and do it this way but I want to better understand whats going on here and why I can't tell it to directly run the test suite. </p>