Search code examples
unit-testingdebuggingloggingrobolectricgradlew

Robolectric 2.4 and android.util.Log


How can I show the Log.d() output made in the application code when testing with Robolectric? Currently I use version 2.4.


Solution

  • I often doing recently (because of lack integration with Android Studio) next in my test code:

    System.out.println("TEST");
    

    And run gradle with:

    gradle testDebug -i