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
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.
Installation
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.
Usage
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.
Configuring Coverage Collection
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.