pulumi / pulumi-go-provider

A framework for building Go Providers for Pulumi
Apache License 2.0
33 stars 10 forks source link

Extend code coverage to be more meaningful #278

Closed mikhailshilkov closed 1 month ago

mikhailshilkov commented 1 month ago

I noticed two issues with existing code coverage stats:

  1. Only in-module data are collected, e.g. tests in the github.com/pulumi/pulumi-go-provider/tests module don't output coverage data for github.com/pulumi/pulumi-go-provider
  2. The examples and tests folders have coverage data for its resource implementation code.

This PR changes the arguments to collect data for all submodules of github.com/pulumi/pulumi-go-provider but to exclude examples and tests/grpc in codecov itself.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.08%. Comparing base (ade261c) to head (5bc7401).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #278 +/- ## =========================================== + Coverage 38.32% 71.08% +32.75% =========================================== Files 45 33 -12 Lines 4717 4098 -619 =========================================== + Hits 1808 2913 +1105 + Misses 2745 921 -1824 - Partials 164 264 +100 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

pulumi-bot commented 1 month ago

This PR has been shipped in release v0.23.0.