title: JUnit4 - AssertionFailedError: No tests found
body: <p>I'm using AndroidJUnitRunner with Espresso.</p>
  
  <p>I wrote a simple test but always receive this exception. According to Stackoverflow answers, the problem is messing up the JUnit3 and JUnit4 but I have never used JUnit3 in my project.</p>
  
  <blockquote>
    <p>junit.framework.AssertionFailedError: No tests found in com.walletsaver.app.test.espresso.SignUpPopupTest</p>
  </blockquote>
  
  <pre><code>package com.walletsaver.app.test.espresso;
  
  import android.support.test.rule.ActivityTestRule;
  import android.support.test.runner.AndroidJUnit4;
  import android.test.suitebuilder.annotation.SmallTest;
  
  import com.walletsaver.app.activity.LoginActivity;
  
  import org.junit.Rule;
  import org.junit.Test;
  import org.junit.runner.RunWith;
  
  import static android.support.test.espresso.Espresso.onView;
  import static android.support.test.espresso.action.ViewActions.click;
  import static android.support.test.espresso.matcher.ViewMatchers.withText;
  
  @RunWith(AndroidJUnit4.class)
  @SmallTest
  public class SignUpPopupTest {
  
      @Rule
      public ActivityTestRule&lt;LoginActivity&gt; mActivityRule =
              new ActivityTestRule&lt;&gt;(LoginActivity.class);
  
      @Test
      public void checkSignUpPopup() throws Exception {
          onView(withText("Sign Up")).perform(click());
      }
  }
  </code></pre>
  
  <p>Run configuration:
  <a href="https://i.stack.imgur.com/SIgFd.png"><img src="https://i.stack.imgur.com/SIgFd.png" alt="enter image description here"></a></p>
  
  <p>Output:
  <a href="https://i.stack.imgur.com/LVath.png"><img src="https://i.stack.imgur.com/LVath.png" alt="enter image description here"></a></p>