aerogear / aerogear-android-sdk

AeroGear Services Android SDK
Apache License 2.0
8 stars 31 forks source link

Added Code Coverage #273

Closed trepel closed 6 years ago

trepel commented 6 years ago

Motivation

Having code coverage computed is very useful.

Description

Added some JaCoCo config and tasks that are able to generate the code coverage reports - for each module individually (jacoco.gradle) and for 'root' report that combines all the module reports together (build.gradle). The build. gradle also contains few variables used in both individual and root jacoco tasks to avoid duplicity definitions of these variables.

Additional Notes

Next step would be to integrate with coverals or codecov and add nice badge to README.md so that we can track the trend of code coverage over the time.

danielpassos commented 6 years ago

@trepel Can you rebase?

danielpassos commented 6 years ago

@trepel just a note about the next steps, we have used codecov on some AeroGear projects with shields.io for AeroGear Android Store badge

trepel commented 6 years ago

Hi @danielpassos , rebased.

I know about both codecov and coveralls being used for some AeroGear projects. That's why I wanted to investigate that two. I read you comment so that you would prefer codecov, thus I will start with that.

I will be on holiday next week so don't be surprised if I don't reply on your comments.