Gradle: No tests found : <p>When I am trying to run Android tests by executing:</p>

<pre><code>./gradlew connectedDebugAndroidTest
</code></pre>

<p>The following error occurs:</p>

<pre><code>com.android.builder.testing.ConnectedDevice &gt; No tests found.[devicename] FAILED
No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations).
:connectedDebugAndroidTest FAILED

FAILURE: Build failed with an exception.
</code></pre>

<p>I <strong>have not made any changes</strong> to <code>build.gradle</code> or <code>gradle-wrapper.properties</code> files.</p>

<p>The issue can't be solved by updating everything to the latest version (gradle, android plugin, build tools, etc.)</p>

<p>All tests were previously successful. What could cause this mystic regression? Thanks.</p>
