auto-detect apk path is not respected if multiple variants configured in configs
fladle {
serviceAccountCredentials(testLabApiKey)
devices = [
new Device("Pixel2", 28, null, null)
]
configs {
one {
variant = "one-debug"
}
two {
variant = "two-debug"
}
}
}
Running runFlankOne or runFlankTwo is expected to get the right app and test path however it will choose a random variant during auto-detection
Hey, interesting bug. I'm not sure there is any mapping or guarantee between the configs and the build variants. If you set the path explicitly does it work?
What would be the expected behavior of detecting and matching configs and variants?
Sorry it took so long to look at this bug. This feature isn't supported. I could build it if needed, but maybe additionalTestApks is a better option? https://runningcode.github.io/fladle/configuration/#additionaltestapks
Hey sorry this took a while to get a real response. I took a first stab at this and realized it is impossible to know if the variants should auto-detect the apk since they will already have the apk set and configured from the root.
So, is it not possible to have the variant configured in the configs block?
I have a small project here where it does not select the right apks.