JakeWharton / hugo

Annotation-triggered method call logging for your debug builds.
Apache License 2.0
7.92k stars 797 forks source link

Jacoco code coverage does not work when I add @DebugLog #97

Open martijndebruijn opened 9 years ago

martijndebruijn commented 9 years ago

The Jacoco test code coverage does not work when I add the @DebugLog annotation.

In the Jacoco test coverage report only the first line is marked. All other lines of code are still white. The same behaviour is visible when running the unit tests from Android Studio with the "Run ... with code coverage" option.

When I remove the @DebugLog annotation everything works fine.

emartynov commented 8 years ago

Also reported here: http://stackoverflow.com/questions/34010286/android-studio-coverage-report-not-run-on-annotated-methods

emartynov commented 8 years ago

Looking to code fo the plugin: https://github.com/JakeWharton/hugo/blob/master/hugo-plugin/src/main/groovy/hugo/weaving/plugin/HugoPlugin.groovy

I think code coverage should work for release build.