Android test results with Gradle build runner

Hi all,

is there a way to configure Gradle build task to import test resutls of Android instrumentation tests?

Regards.
Nemanja

4 comments
Comment actions Permalink

Actually, Gradle build should report executed tests out of the box.
If it does not, please attach build logs and build.gradle file to this issue: http://youtrack.jetbrains.com/issue/TW-30860

Workaround would be to configure "XML Report processing" build feature: http://confluence.jetbrains.com/display/TCD8/XML+Report+Processing
This way, TeamCity will parce resulting xml repots and display test results on the UI

0
Comment actions Permalink

Gradle Anndroid plugin does expots test reports to the build/reports/instrumentTests and build/instrumentTest-results for XML reports: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Testing

Also, the workaorung suggested isn't applicable to Gradle build runner as stated in the documentation linked.

0
Comment actions Permalink

Nemanja,

Please set up
"XML Report processing"

with "Report type" - "Ant JUnit"
and "Monitoring rules"

build/reports/instrumentTests/**/*.xml

build/instrumentTest-results/**/*.xml

0
Comment actions Permalink

Thanks Nikita, that worked for me.

Maybe this should be placed somewhere in the documentation.

Regards,
Nemanja

0

Please sign in to leave a comment.