Closed stetro closed 3 years ago
Found the solution myself - turned out that the test-run-id was not passed to the TestRunner because I have overwritten it with my instrumented test configuration:
// only run screenshot instrumented tests when called and vice versa
if (project.gradle.startParameter.taskNames.any { it.endsWith("ScreenshotTest") }) {
setTestInstrumentationRunnerArguments(["package": "..packagename...screenshot"])
} else {
setTestInstrumentationRunnerArguments(["notPackage": "..packagename...screenshot"])
}
Insted of overwriting the arguments they can be extended like this:
// only run screenshot instrumented tests when called and vice versa
if (project.gradle.startParameter.taskNames.any { it.endsWith("ScreenshotTest") }) {
testInstrumentationRunnerArguments["package"] = "..packagename...screenshot"
} else {
testInstrumentationRunnerArguments["notPackage"] = "..packagename...screenshot"
}
May this is helpful for someone else :)
I'm trying to get this extension running but facing an issue after the tests run through. I can see the created screenshots in
/sdcard/screenshots/...packagename.../screenshots-default/
but the python scripts tries to pull from/sdcard/screenshots/...packagename.../screenshots-default/59b35fe9-f3bb-4b20-806e-a1f3b4a686aa
which in fact is a non existing folder.Any idea what I'm missing here?