Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Can i use NCrunch for CodeCoverage in VSTS?
BerndU
#1 Posted : Monday, May 14, 2018 11:08:00 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/14/2018(UTC)
Posts: 3
Location: Germany

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
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!
Remco
#2 Posted : Monday, May 14, 2018 9:29:03 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,373

Thanks: 705 times
Was thanked: 878 time(s) in 835 post(s)
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.
1 user thanked Remco for this useful post.
BerndU on 5/15/2018(UTC)
BerndU
#3 Posted : Tuesday, May 15, 2018 7:21:49 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/14/2018(UTC)
Posts: 3
Location: Germany

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
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 ;-)
Remco
#4 Posted : Tuesday, May 15, 2018 9:28:53 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,373

Thanks: 705 times
Was thanked: 878 time(s) in 835 post(s)
BerndU;12191 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.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.030 seconds.