This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
5 Replies Last post: Nov 29, 2013 7:47 PM by Ruslan Isakiev  
James Crowley Newbie 17 posts since
May 14, 2010
Currently Being Moderated

Oct 10, 2013 8:42 PM

Multiple report types? TeamCityXml and NDependXml

We've using both the TeamCity functionality for running dotCover, and would like to pump the coverage results into NDepend too.

 

To do this, we need to set ReportType in coverage.xml to NDependXml. However, then TeamCity can't do anything with the output.

 

Is there a way to get both the reports generated without having to re-run all our tests twice through dotCover?

 

Thanks

 

J

Laurent Kempé Newbie 4 posts since
Aug 9, 2012
Currently Being Moderated
Nov 27, 2013 7:10 PM in response to: James Crowley
Re: Multiple report types? TeamCityXml and NDependXml

That's would be really great!

 

Thanks

Laurent

Ruslan Isakiev JetBrains 190 posts since
Mar 22, 2010
Currently Being Moderated
Nov 28, 2013 2:34 PM in response to: James Crowley
Re: Multiple report types? TeamCityXml and NDependXml

Currently if coverage analysis is enabled for the configuration, TeamCity publishes coverage snapshot info artifacts (.teamcity/.NETCoverage/dotCover.snapshot)
It is possible to pass this snapshot to the bundled dotCover console runner and execute 'report' command to generate additional report of the desired type.

 

Besides that we have TeamCity feature request which aims to simplify the above mentioned process.
http://youtrack.jetbrains.com/issue/TW-19762
You are welcome to vote for it and comment.

 

Regards,
Ruslan

Laurent Kempé Newbie 4 posts since
Aug 9, 2012
Currently Being Moderated
Nov 28, 2013 1:32 PM in response to: Ruslan Isakiev
Re: Multiple report types? TeamCityXml and NDependXml

Thanks Ruslan. It works perfectly!

 

I just need an update of NDepend, which should arrive today to be able to feed it with the dotcover report which was generated!

 

As a recap, but I will blog about it soon, I have

  • a first feature branch build which generate dotCover snapshot, so code coverage is displayed as a result of this build
  • a second NDepend build watching changes on the dependencies of the first build and getting back the dotCover.snapshot and the result of the first build (.exe, .dll..). This build is composed of build steps
    1. Command line dotCover which use dotCover.snapshot to generate the report in NDependFormat
    2. Command Line NDepend which use generated file in step 1 and all artifacts from first build
Laurent Kempé Newbie 4 posts since
Aug 9, 2012
Currently Being Moderated
Nov 29, 2013 4:26 PM in response to: Laurent Kempé
Re: Multiple report types? TeamCityXml and NDependXml

I just posted a blog post about this Using TeamCity integrated dotCover coverage files with NDepend !

 

Cheers

Laurent

Ruslan Isakiev JetBrains 190 posts since
Mar 22, 2010
Currently Being Moderated
Nov 29, 2013 7:47 PM in response to: Laurent Kempé
Re: Multiple report types? TeamCityXml and NDependXml

That's great!

Thanks Laurent!

More Like This

  • Retrieving data ...