A code coverage extension for Visual Studio for Mac that provides a new pad for displaying coverage statistics and visualizing line coverage in the editor margin.
-
Open Visual Studio Extension Repository Manager via
Visual Studio -> Extensions... -> Gallery -> Repositories Dropdown -> Manage Repositories
. -
Add
https://raw.githubusercontent.com/ademanuele/VSMac-Extensions/master/main.mrep
to your repository sources. -
Back in extension manager, you should now be able to see the extension listed as "Code Coverage". Select and press
install
. -
Restart Visual Studio for Mac.
-
Done.
Any future updates to the extension should show up in the Updates
tab of the Extension Manager.
You can access the Coverage pad through View -> Other Windows -> Coverage
.
Select any test project that is currently open in the workspace using the dropdown menu and hit Gather Coverage
.
Your test project should start running. When complete, line and branch coverage results for each covered project are shown on the pad as well as in margins for any editors that you have open.
This extension supports most of the coverage configuration options currently provided by coverlet.
These can be set by creating a file with the extension .runsettings
in the directory alongside your solution file.
You can use this sample runsettings file as a starting point.
More info can be found on coverlet's runsettings documentation.
If you find a bug or have a feature request, please report them at this repository's issues section.
If you like this tool and would like to support its development, you can...
-
Arthur Demanuele - Author
-
This extension also uses Toni Solarin-Sodara's coverlet coverage tool for gathering coverage.
Big thanks to the coverlet project, which made this extension possible.
Big thanks to David Karlas for resolving an issue with the editor margin functionality.
This project is licensed under the MIT License - full details.
See also coverlet's licence.