Android test results with Gradle build runner Permanently deleted user Created January 30, 2014 12:07 Hi all,is there a way to configure Gradle build task to import test resutls of Android instrumentation tests?Regards.Nemanja
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
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.
Nemanja,
Please set up
"XML Report processing"
with "Report type" - "Ant JUnit"
and "Monitoring rules"
build/reports/instrumentTests/**/*.xml
build/instrumentTest-results/**/*.xml
Thanks Nikita, that worked for me.
Maybe this should be placed somewhere in the documentation.
Regards,
Nemanja