Add test coverage using Kover#748
Conversation
| command: ./gradlew koverMergedHtmlReport | ||
| - run: | ||
| name: Kover XML | ||
| command: ./gradlew koverMergedXmlReport |
There was a problem hiding this comment.
we might want to have this as a separate job, but it will run pretty fast in this case since it runs after tests
| filters { | ||
| projects { | ||
| // Specifies the projects excluded from the merged tasks | ||
| excludes.addAll(":api-tester", ":integration-tests", ":examples:purchase-tester") |
There was a problem hiding this comment.
It would complain I need to enable kover in all these projects if I don't disable them here
tonidero
left a comment
There was a problem hiding this comment.
Oh nice! I've only used Jacoco before. Been checking out the report and it looks great!
Have we thought about adding a minimum coverage? I'm just afraid we will end up overlooking coverage without some kind of test to verify it. Looks like in Kover you can establish bounds for coverage. But if we are planning to just try this out for now, this might be ok.
|
I haven't experimented with kover verify yet, but it's possible. Maybe it would be better to wait a bit until we have the system fully working and people are looking into it to add the verify, I don't want it to be an annoying thing to take care of right now when merging PRs |
**This is an automatic release.** ### New Features * Add `Purchases.logLevel` and deprecate `Purchases.debugLogsEnabled` (#753) via NachoSoto (@NachoSoto) ### Bugfixes * Avoid syncing attributes for users with blank user ids (#755) via Toni Rico (@tonidero) ### Other Changes * Fixed Readme.MD (#727) via AristiDevs (@ArisGuimera) * Add codecov (#750) via Cesar de la Vega (@vegaro) * Update AGP to 7.4.0 (#747) via Cesar de la Vega (@vegaro) * Add test coverage using Kover (#748) via Cesar de la Vega (@vegaro) Co-authored-by: revenuecat-ops <ops@revenuecat.com> Co-authored-by: Cesar de la Vega <cesarvegaro@gmail.com> Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
Added test coverage for the project using Kover (https://kotlin.github.io/kotlinx-kover/)
We need to decide a report tool. We used coveralls in the past and it wasn't very good. I think we should try Codecov, which is pretty popular and free for open source projects.
For now I am just saving the reports in HTML and XML in CircleCI