Ich bin mitAndroid Tests - Wie Espresso Logs
androidTestCompile 'com.android.support.test:runner:0.3'
androidTestCompile 'com.android.support.test:rules:0.3'
androidTestCompile 'com.android.support:support-annotations:23.0.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2'
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2') {
// this library uses the newest app compat v22 but the espresso contrib still v21.
// you have to specifically exclude the older versions of the contrib library or
// there will be some conflicts
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude module: 'recyclerview-v7'
}
androidTestCompile 'junit:junit:4.12'
für Tests hinzufügen und frag dich, ob es gibt einen Weg, um ein Protokoll mit dem gestarteten Test und den fertigen Test zu sagen Espresso so wird gedruckt Der Logcat ist einfach zu sehen, wenn etwas passiert.
Das wird gut sein, um mit papertrail zu mischen, um zu überprüfen, warum Tests ausfallen und wo mit privaten Integrationsservern.
Es ist bereits Protokolle drucken ... 'Testrunner Ich begann: successCloseView' – Caipivara
Im Ernst, es gibt keinen Weg, um tatsächlich Debuglog/console-Einträge ein hinzufügen Espressotest? Wenn die vorhandene Ausgabe nicht ausreicht, ist dies ein natürlicher nächster Schritt: Moar Logging hinzufügen. – ChrisPrime