Skip to content
A Visual Studio for Mac code coverage extension.
C#
Branch: master
Clone or download

README.md

Build Status

VSMac-CodeCoverage

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

  1. Open Visual Studio Extension Repository Manager via Visual Studio -> Extensions... -> Gallery -> Repositories Dropdown -> Manage Repositories.

  2. Add https://raw.githubusercontent.com/ademanuele/VSMac-Extensions/master/main.mrep to your repository sources.

  3. Back in extension manager, you should now be able to see the extension listed as "Code Coverage". Select and press install.

  4. Restart Visual Studio for Mac.

  5. 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 -> Pads -> 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.

Planned Features

  • Keyboard shortcuts
  • Configurable editor margin colors
  • Coverage graphs

Reporting Issues

If you find a bug or have a feature request, please report them at this repository's issues section.

Support

If you like this tool and would like to support its development, you can...

Buy Me A Coffee

Authors

  • Arthur Demanuele - Author

  • This extension also uses Toni Solarin-Sodara's coverlet coverage tool for gathering coverage.

Acknowledgments

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.

License

This project is licensed under the MIT License - full details.

See also coverlet's licence.

You can’t perform that action at this time.