Search code examples
javaandroidjunitandroid-studioandroid-testing

Where can I view JUnit test results in Android Studio?


I have a simple test class:

public class SimpleTest extends AndroidTestCase {

    public void testSomething() throws Throwable {
         Assert.assertEquals(1 + 1, 2);
    }
}

I know how to run the test, but where can I view the output in Android Studio?


Solution

  • Run the test by right clicking on it.

    enter image description here

    The run tab should pop up, you can open it by hand on the very bottom left corner.

    enter image description here

    It will list your test results.