zyborg / dotnet-tests-report

GitHub Action to run .NET Core tests and generate report attached to Workflow Run
MIT License
112 stars 36 forks source link

Support for collecting code coverage? #10

Closed godefroi closed 3 years ago

godefroi commented 3 years ago

It would be great if there were a way to either add additional arbitrary arguments to the call to dotnet test, or specifically, if there were a way to cause the dotnet test run to collect code coverage information (i.e. pass --collect:"XPlat Code Coverage" for coverlet).

Because of the wide variety of tools available to collect coverage information, it would probably be significantly easier to implement a way to pass arbitrary arguments, and allow the user to determine the correct setup to use.

ebekker commented 3 years ago

Sounds like a great addition. Would you be willing to submit a PR? I would lean toward the "additional args" option, as you say it's there's lots of options that could take advantage so it would be the more versatile options.

godefroi commented 3 years ago

I can see what I can come up with.

rocklan commented 3 years ago

Sounds like a great addition. Would you be willing to submit a PR? I would lean toward the "additional args" option, as you say it's there's lots of options that could take advantage so it would be the more versatile options.

Done in the attached PR, all feedback appreciated!

ebekker commented 3 years ago

Done! v1.4.0