I am running gradle connectedCheck (i.e., tests for Android-specific code) and some of the tests print out some debugging information. The testing framework is JUnit.
I have tried various ways to output the debugging information, namely, System.out.println, android.util.Log.i, timber.log.Timber.i. However, in every case, the logging output is not displayed when I run gradle connectedCheck, gradle connectedCheck --info, or gradle connectedCheck --debug.
How can I obtain the logging output when running gradle connectedCheck, either on the console or output to a file? If output to a file, is there a way to ensure that the file is on the development host file system, and not on the Android emulator file system?