title: No tests found for given includes after upgrade to Gradle 5.1.1
body: <p>We used to have a few commands like following:</p>
  
  <pre><code>gradlew test --tests *MyTest
  </code></pre>
  
  <p>For example the class MyTest is in the package <code>com.test.MyTest</code>.
  When using a Gradle version &lt; 5.0 this worked just fine but after the upgrade to 5.1.1 I get following error:</p>
  
  <blockquote>
    <p>No tests found for given includes: [*MyTest](--tests filter)</p>
  </blockquote>
  
  <p>We have already replaced all such occurrences because I think using the full path to a class is much better. But I am wondering why this isn't working anymore.</p>
  
  <p>BTW: I am using TestNG and the mentioned class has at least one public method annotated with <code>@Test</code>.</p>