Adding code-coverage using coverlet and reportgenerator packages; first attempt just comments with current coverage and uses just net8.0 for the framework. Further improvements could be figuring out how to do historical delta so a PR could be compared to main and only pass if the coverage increases (due to adding tests).
Motivation and context
We'd like to have code-coverage for all drivers so that we can at least provide a glimpse into the test coverage that a given change is adding.
How was the change tested?
Did a lot locally with the coverage build and different types of reports, then opened a draft PR to see what it looks like in GH.
Change types
[ ] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (backwards-incompatible fix or feature)
[x] Test-only change
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to Fauna documentation.
[ ] My change requires a change to the README, and I have updated it accordingly.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Code coverage diff works (and there's conditional logic to skip since comparing to main doesn't work in this PR); see the comment on this PR: https://github.com/fauna/fauna-dotnet/pull/165
Description
Adding code-coverage using
coverlet
andreportgenerator
packages; first attempt just comments with current coverage and uses justnet8.0
for the framework. Further improvements could be figuring out how to do historical delta so a PR could be compared to main and only pass if the coverage increases (due to adding tests).Motivation and context
We'd like to have code-coverage for all drivers so that we can at least provide a glimpse into the test coverage that a given change is adding.
How was the change tested?
Did a lot locally with the coverage build and different types of reports, then opened a draft PR to see what it looks like in GH.
Change types
Checklist:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.