Giter VIP home page Giter VIP logo

vsmac-codecoverage's Introduction

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 gutter.

Installing

  1. Download the extension from the Releases section.

  2. In Visual Studio for Mac, open Extension Manager -> Install from file... and install the downloaded file.

  1. Restart Visual Studio for Mac

  2. Done.

In order access the code coverage pad, navigate to View -> Pads -> Coverage.

Setting the Test Command

The coverage extension runs your unit tests while gathering coverage, which it does by using the unit testing command. This should be set to whatever is used for running the tests on the command line.

Note: if the terminal command is usually prepended with the mono command, this should also be included. Very strange behaviour has been observed when it is not.`

Example Command:

/path/to/NUnit.ConsoleRunner.x.x.x/tools/nunit3-console.exe --noresult {ProjectOutputFile}

The {ProjectOutputFile} placeholder is substituted by your unit testing project's .dll when running the tests.

Planned TODOs

  • Filter irrelevant assemblies from Coverage
  • Refresh test projects dropdown and results when changing solutions
  • Remove the need for a test command
    • Or at least, store a different test command per project/solution
  • Gather coverage keyboard shortcut
  • Make line marker background and text colors configurable
  • Add coverage graphs
  • Coverage trend over time graph
    • Keep X historic coverage results (settable as preference)
    • Plot summary

Authors

  • Arthur Demanuele - Coverage Extension

This extension uses Steve Gilham's altcover coverage tool for gathering coverage.

License

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

See also altcover's licence.

Acknowledgments

Big thanks to the altcover project, which made this extension possible.

vsmac-codecoverage's People

Contributors

ademanuele avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.