aggregating gradle multiproject test results using TestReport

前端 未结 5 490
深忆病人
深忆病人 2020-12-08 03:51

I have a project structure that looks like the below. I want to use the TestReport functionality in Gradle to aggregate all the test results to a single directory. Then I ca

5条回答
  •  情歌与酒
    2020-12-08 03:57

    For 'connectedAndroidTest's there is a approach published by google.(https://developer.android.com/studio/test/command-line.html#RunTestsDevice (Multi-module reports section))

    1. Add the 'android-reporting' Plugin to your projects build.gradle.

      apply plugin: 'android-reporting'

    2. Execute the android tests with additional 'mergeAndroidReports' argument. It will merge all test results of the project modules into one report.

      ./gradlew connectedAndroidTest mergeAndroidReports

提交回复
热议问题