Questions tagged [partcover]

PartCover is an open source code coverage tool for .NET

PartCover is an open source code coverage tool for .NET. It was originally hosted on sourceforge but all development has since moved on to GitHub. It now supports .NET 4 but is only being maintained as all future development effort is being put into OpenCover.

43 questions
23
votes
5 answers

Getting PartCover to work

I want to try PartCover for code coverage. I'm running Visual Studio 2008 Professional with MSTest. The Professional Edition does not include the Team Testing tools, like Code Coverage. So, I'm trying PartCover, but I can't get it to work. In the…
sgwill
  • 9,814
  • 8
  • 35
  • 40
15
votes
1 answer

How do I run PartCover in x64 windows

I am trying to run PartCover to test the coverage of some tests with Gallio on windows x64. However trying to run it gives the following error. Retrieving the COM class factory for component with CLSID {FB20430E-CDC9-45D7-8453-272268002E08}…
Oliver Hallam
  • 4,242
  • 1
  • 24
  • 30
9
votes
5 answers

How do I include full PartCover results with TeamCity 5?

I'm trying to get PartCover reports to generate correctly in TeamCity 5.0. When I click the Code Coverage tab in the build details, the reports are empty. I'm using the sln2008 build agent and my PartCoverage settings are as follows: Include…
Jim Geurts
  • 20,189
  • 23
  • 95
  • 116
7
votes
6 answers

Using PartCover 2.3 with .NET 4.0 runtime?

I've successfully got PartCover 2.3 working with VS 2008 on my 64-bit machine. I'm now trying to get it to work with VS 2010 and NUnit 2.5.3. I've got NUnit using the correct CLR version, but I can't get PartCover to produce any output. All I get is…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
5
votes
2 answers

PartCover console produces empty output xml

I'm using partcover to produce codecoverage for a bunch of mstest powered unit tests. I use the command line: PartCover.exe --target "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" --target-args…
ilivewithian
  • 19,476
  • 19
  • 103
  • 165
5
votes
2 answers

Why PartCover report shows 0% when mstest runs successfully and all tests pass

I'm trying to get code coverage with mstest tests. I'm using PartCover 2.2.0.36424. The problem is with real assemblies, I get 0% code coverage (Note: All tests pass). On demo test for demo source that I created, it worked fine (the report makes…
SvetlanaM
4
votes
2 answers

Branch coverage for expressions in OpenCover

Does branch coverage work on the following statement? I expected a red indicator because the first expression only has tests where it is false and not true. tax.Voided = P_tax.Amount == 1012312870000.42M || P_tax.Amount < 0.00M; The first…
Ryan Andres
  • 312
  • 3
  • 13
4
votes
1 answer

PartCover 4.0 Only Reports NUnit Libraries

I'm using PartCover 4.0 (from the sourceforge page, latest dev build) with NUnit 2.5.8 on Windows 7 (x64). PartCover runs ok (using the -x86.exe), but it only shows me coverage for various NUnit packages -- not my own source-code. I originally…
ashes999
  • 9,925
  • 16
  • 73
  • 124
4
votes
2 answers

PartCover and TeamCity

I am using TeamCity to build via a solution file. I am attempting to get "PartCover" to work it. It is easy enough to point it to the partcover.exe, I am just unsure how to get team city to produce a proper report from the results of our nUnit test.…
jane doe
  • 1,733
  • 3
  • 11
  • 7
3
votes
2 answers

NUnit 2.5.6 + PartCover 2.0/4.0 = My Classes Not Shown

Summary: I can run unit tests and code-coverage, but the report only includes NUnit classes, not my application classes. I have successfully used PartCover in the past. Not so this time. I tried the latest PartCover (4.0), downgraded to the next…
ashes999
  • 9,925
  • 16
  • 73
  • 124
3
votes
1 answer

Cannot produce coverage in TeamCity using NUnit and PartCover

I'm using TeamCity version 8.0.4. I've got a build step that uses the NUnit runner and PartCover as the coverage tool. I've followed the steps outlined here (http://www.jeremyskinner.co.uk/2010/07/23/using-teamcity-with-partcover-4/). That is, I've…
TheMagnificent11
  • 1,424
  • 4
  • 19
  • 40
3
votes
3 answers

Partcover and Typemock integration

I was wondering if someone has some ideas about how to integrate typemock and partcover. We have unit tests which use typemock in our c# sharepoint based application and we would like to run them via partcover and be able to see the coverage…
Andrew
  • 53
  • 1
  • 1
  • 9
2
votes
0 answers

PartCover producing empty xml when upgrading applications to .Net 4.0

We have been running PartCover on applications, and they were producing xml reports just fine. However, we upgraded all our applications from .Net 3.5 to .Net 4.0, and now, PartCover just produces an empty XML file. I tried upgrading to latest NUnit…
ATDeveloper
  • 289
  • 4
  • 15
2
votes
1 answer

Merging several PartCover reports into a CruiseControl.Net build log

I run a sequence of integration tests of several components as a part of a CruiseControl.Net project. Then I merge PartCover reports into the overall build report and here comes the problem: every report has assembly IDs starting from 1. As a…
Ivan Gerken
  • 914
  • 1
  • 9
  • 21
2
votes
3 answers

How to use: PartCover .NET 4 with NUnit 2.5.6

Say I have Test assembly (NUnit compliant) App.Test.dll and a library to be tested App.dll. How do I get the code coverage analysis using PartCover and NUint?
Louis Rhys
  • 34,517
  • 56
  • 153
  • 221
1
2 3