You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, this is my workflow for generating test coverage reports for a third party project that uses central package management and a Directory.Packages.Props file:
cd to the test project for which I want to generate a report
Add coverlet.collector package to test project, and then remove the version
dotnet add package coverlet.collector
Open the Directory.Packages.Props file in a text editor and add the following item group:
The issue here is that I basically have to go in and edit the files for the third party project every time I want to generate a report. I do my work with the help of the coverage report but then I have to delete the edits I make to the various files (test project files and the global Directory.Packages.Props.
This is quite clunky and an obstacle to generating quick coverage runs to just see what kind of test coverage I have for a specific class or subset of tests.
Is there a way to use coverlet without having to modify any project files?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, this is my workflow for generating test coverage reports for a third party project that uses central package management and a
Directory.Packages.Props
file:cd
to the test project for which I want to generate a reportcoverlet.collector
package to test project, and then remove the versionDirectory.Packages.Props
file in a text editor and add the following item group:The issue here is that I basically have to go in and edit the files for the third party project every time I want to generate a report. I do my work with the help of the coverage report but then I have to delete the edits I make to the various files (test project files and the global
Directory.Packages.Props
.This is quite clunky and an obstacle to generating quick coverage runs to just see what kind of test coverage I have for a specific class or subset of tests.
Is there a way to use coverlet without having to modify any project files?
Beta Was this translation helpful? Give feedback.
All reactions