-
Notifications
You must be signed in to change notification settings - Fork 395
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
Emma instrumentation does not work when Proguard is enabled #489
Comments
If you got a fix... we would take it. |
Can you submit a pull request? |
I am sorry for so long delay, I had a fix but I had no enough time to test it in real world. |
Where did this go? |
Closing old issue as cleanup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem is in lifecycle bindings themselves.
Proguard is bind to process classes phase but Emma is bind to prepare package phase.
When both Emma and Proguard are enabled, plugin builds project in the following order:
This way instrumented classes just won't get into DEX and you will get 37 bytes coverage.ec file which basically means it is empty.
To fix the problem it is possible to re-bind emma goal to process classes phase:
Problem exists in android-maven-plugin for a long time and I observed it in 3.6.0 and 3.9.0-rc.2.
The text was updated successfully, but these errors were encountered: