dropshots
dropshots copied to clipboard
Incorrect location of screenshots for tests in flavored sources
Dropshots stores screenshots in my androidTest directory even when my tests are present in androidTestDebug. Is this intentional?
Hi Saket, Interesting question, do you specify a specific path for your debug tests? this is where the folder of the screenshots is defined: https://github.com/dropbox/dropshots/blob/main/dropshots-gradle-plugin/src/main/kotlin/com/dropbox/dropshots/DropshotsPlugin.kt#L47 Currently the folder doesn't seem to take into account the flavor and that is a problem if you are expecting different outputs from different flavors
do you specify a specific path for your debug tests?
do you mean in my build script?
@rharter what was the reasoning to have the screenshots in the "screenshot" folder and not an asset folder inside a res/assets folder ?
It's integrated into assets at built time, but it's also used as task input and output, so plays into Gradles up-to-date checks.