Skip to content

Is it even possible to test minified build now? #146

Closed Answered by dsvoronin
dsvoronin asked this question in Q&A
Discussion options

You must be logged in to vote

So first of all, my assumption was wrong, and instrumented test WORKS over build with debuggable=false just fine.
If you know any limitations, please let me know.

In case you want to debug failed test on the same build, which is, I believe, a fair requirement, than you have to do couple of tricks. Example:

RedMadRobot/gradle-infrastructure@7e70dc2
Thanks @osipxd .

You also need to change BuildConfig.DEBUG value

Some history:

  • minification and obfuscation is not working since AGP 7.2.0, is was silently(no release notes mention) disabled as not intended behavior

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@dsvoronin
Comment options

@ZacSweers
Comment options

@dsvoronin
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dsvoronin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants