6

I am trying to get coverage report from our test suite which needs to run with Android Test Orchestrator.

There is a fixed issue which references another fixed issue.

Following their suggestion I have added

testInstrumentationRunnerArguments coverageFilePath: '/data/local/tmp/codeCoverage'

But I'm still getting

 java.io.IOException: No coverage data to process in directories [[buildDr]/outputs/code_coverage/stageTestDebugAndroidTest/connected]

I think it might be related to this line in Test Release Note Archive page

Only enable orchestrator coverage handling if both 'coverage' and 'coverageFilePath' arguments are passed.

I have tried adding

testInstrumentationRunnerArguments coverage: 'true'

It doesn't make a difference and I couldn't find any info on what should actually be passed.

Do you know what I'm missing?

A link to a working example would also be really nice.

saiedmomen
  • 1,401
  • 16
  • 33

0 Answers0