Shot: Application suffixes are not being handled correctly when testApplicationId is configured
Expected behaviour
If I run ./gradlew <Flavor><BuildType>ExecuteScreenshotTests -Precord I get all the screenshots recorded and downloaded from the device.
Actual behaviour
Build fails with this message:
Execution failed for task ‘:app:downloadScreenshots’. Nonzero exit value: 1
Steps to reproduce
This is my setup:
buildTypes {
debug {
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
}
}
productFlavors {
dev {
applicationIdSuffix ".dev"
versionNameSuffix "-dev"
}
}
Setup for Version 4.0.0:
shot {
useComposer = true
}
Setup for Version 3.1.0:
shot {
appId = "my.application.package.dev.debug"
instrumentationTestTask = "testDevDebugComposer"
}
It also happens without using composer, by the way.
Attached the whole exception stacktrace gradleException.txt
Version of the library
3.1.0, 4.0.0
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 18 (10 by maintainers)
Hi @fmontesino I’ve just merged a PR fixing this. The suffix was not being used properly for build types but I’ve just fixed it and I’m about to release a new version with the fix.
I’ll try to take a look at #100 and #96 today.
Until we can provide support for the usage of the mentioned variable, please remove it if it’s possible and use the latest shot release 😃 I’m going to rename the issue so we can fix it soon.