samedi 9 juillet 2016

Android Tests - How to add Espresso Logs

I´m using

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'

for tests and was wondering if there´s a way to say to espresso to print a log with the started test and the finished test so will be easy to see the logcat if something happens.

That will be great to mix with papertrail to check why tests are failing and where with private integration servers.

Aucun commentaire:

Enregistrer un commentaire