Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test runner for Android includes app's version name and version code in file names #269

Open
ragunathjawahar opened this issue Jun 7, 2022 · 0 comments

Comments

@ragunathjawahar
Copy link
Contributor

In recent versions of Android projects (Android Gradle Plugin maybe?), the filenames contain the name of the app, version name, version code, and the build variant. This becomes problematic because the tests will start failing once the version name, version code changes or if the developer switches the build variant.

MyTest.testFunction$AppName_1_0_0_1_build_variant.received.txt

As a work around, I use a custom namer that strips this information off the file name. Things are good with the custom namer. However, when it comes to combination approvals, the API doesn't allow me to specify a namer. I tried using the Options API, but I am unable to get a namer in.

What is the best way to achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant