# connectedCheck flow
# Ensure the app and the test app are built (depending on assembleDebug and assembleTest)
# Install both apps
# Run the tests
# Uninstall both apps.
gradle connectedCheck
測試報告
預設會放在build/androidTest-results
Test Report config
1 2 3 4 5 6 7 8
android { ...
testOptions { // android.testOptions.resultsDir is evaluated with Project.file(String) resultsDir = "$project.buildDir/foo/results" } }