What is the difference between AndroidJUnitRunner and AndroidJunit4? : <p>I am a newbie to the Android testing world and the samples for Unit tests mention the use of <code>AndroidJunit4</code> runner. I have stumbled upon another runner called <code>AndroidJUnitRunner</code>. Now, I saw the docs for both the classes and at one glance, it seems that the difference is that <code>AndroidJunit4</code> supports JUnit4 especially while <code>AndroidJUnitRunner</code> supports JUnit3 and JUnit4 but if you look into the class structure and the available methods, there actually is a huge difference between these two runners. </p>

<p>For ex, <code>AndroidJUnitRunner</code> extends from the following classes:</p>

<p><a href="https://i.stack.imgur.com/zrGS0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zrGS0.png" alt="enter image description here"></a></p>

<p>And, <code>AndroidJunit4</code> extends from,</p>

<p><a href="https://i.stack.imgur.com/RQbKD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RQbKD.png" alt="enter image description here"></a></p>

<p>So, what is the difference between the two runners and which runner am I supposed to be using finally?</p>
