xoofx / dotnet-releaser

Easily build, run tests and coverage, cross-compile, package and publish your .NET library or application to NuGet and GitHub.
BSD 2-Clause "Simplified" License
698 stars 25 forks source link

Improve tests and coverage #29

Open xoofx opened 2 years ago

xoofx commented 2 years ago

Many parts of dotnet-releaser rely on running on GitHub to trigger specific actions (e.g publish...etc.). We can't easily replicate this in a sandbox test. There is some partial mocking, but that wouldn't test these parts.

Also, the tests are running the command dotnet-releaser as a separate executable, so the coverage doesn't capture these runs.

At least, dotnet-releaser is dogfooding itself when running on the main branch, so it can capture issues, but it still doesn't help with classic tests or coverage.