General Discussion

Can i use NCrunch for CodeCoverage in VSTS?

Started by BerndU on 5,516 views

I'm evaluating ncrunch in the moment and like the interactive coverage indicator in the visual studio editor.

Now i have a question - is it possible to use ncrunch to do the same work in a vsts build and show the resulting coverage percentage there?
Would be a nice feature - i have not found anything in the documentation.

Any hint appreciated!
Hi, thanks for posting!

NCrunch does have a console tool that can be used inside a CI system to capture and report code coverage information. See here for more details - http://www.ncrunch.net/documentation/tools_console-tool.

Most of the work done on this tool is targeted towards Team City rather than VSTS, though assuming you're able to set up VSTS to run things on a command line and retrieve artifacts, you should be able to get it working.

The setup guide for the tool describes a way to integrate with TFS using a special project structure. This was last tested a few years ago so I'm not sure if it still works. It may take a little tinkering to find the best solution for your environment.
Thank you very much for the fast answer.

This is mainly what is needed - if there would be a VSTS dashboard plugin to show the coverage over time - would be great ;-)
BerndU wrote:
This is mainly what is needed - if there would be a VSTS dashboard plugin to show the coverage over time - would be great ;-)


Great to hear :) There is no plugin for VSTS at the moment. You are welcome to request one if you like.

Post a reply

Log in to reply.