title: Android Test cases can only be debugged in debug mode after 10 minutes of waiting
body: <p>It was working before. But now it doesn't anymore. The IDE just shows &quot;Instantiating tests...&quot;. But when I wait for 10 minutes, then all of a sudden it does work? The machine is a Macbook Pro, Mid 2015. The problem only occurs on <code>androidTest</code>, the <code>test</code> directory works fine.</p>
  <pre><code>@LargeTest
  @RunWith(AndroidJUnit4::class)
  class SomeTestClass {
  
      @get:Rule
      var activityTestRule = ActivityTestRule(
              NavigationActivity::class.java, false, false)
  
      @Before
      fun before() {
          Timber.d(&quot;When debugging, this triggers only after about 10 minutes.&quot;)
      }
  
      @Test
      fun testContents() {
          Assert.assertEquals(0, 0)
      }    
  }
  </code></pre>
  <p>The log keeps outputting this:</p>
  <pre><code>D/EZIO_NLOG: watchdog_routine executed!
  D/EZIO_NLOG: check1 
      check1 
      check2 
      check2 
  </code></pre>
  <p>Tried the following things:</p>
  <ol>
  <li>File, Invalidate Cache / Restart</li>
  <li>Tried <a href="https://stackoverflow.com/questions/39034929/android-test-cases-not-working-in-debug-mode">this answer</a>. But it seems to be outdated.</li>
  <li>Edit Configurations..., Selected &quot;All in Package&quot;, &quot;Class&quot; and &quot;Method&quot;. None of them work.</li>
  <li>When I wait really long, like 10 minutes, then all of a sudden it triggers and works.</li>
  </ol>
  <p><a href="https://i.stack.imgur.com/gsaDa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gsaDa.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/5NcXh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5NcXh.png" alt="enter image description here" /></a></p>