title: How to run multiple named tests with Gradle?
body: <p>I know how to say</p>
  
  <pre><code>gradle test --tests mypackage.MyTest
  </code></pre>
  
  <p>but how to specify more than one?</p>
  
  <pre><code>gradle test --tests mypackage.MyTest,mypackage.model.ModelTest,BasicTests
  </code></pre>
  
  <p>This seemed to just run one of the tests at random.</p>
  
  <pre><code>gradle test --tests mypackage.MyTest mypackage.model.ModelTest BasicTests
  </code></pre>
  
  <p>This tells me </p>
  
  <blockquote>
    <p>Task 'mypackage.model.ModelTest' not found in root project 'myproject'.</p>
  </blockquote>
  
  <p>I read to a lot of manuals and tutorials (and a few SO posts) and found no explicit mention of the answer. But I saw someone passing --tests "somepackage.*" as an argument, so I figured that quotes around the spaces might help.</p>
  
  <pre><code>gradle test --tests "mypackage.MyTest mypackage.model.ModelTest BasicTests"
  </code></pre>
  
  <p>This does not fail fast, but unfortunately runs only the first test in the list.</p>
  
  <p>So I guess that I have just been mislead by the plural in "--tests" and there is no way to actually give it a list, right?</p>