partcover

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} failed due to the following error: 80040153. Edit: I am using PartCover 2.2.0 ...

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 PartCover.Browser I've selected the MSTest executable, I've pointed the working arguments t...

Getting PartCover.Browser.exe to show a coverage xml through command line

Need help with a silly question. How do I get PartCover.Browser.exe to load and show an existing coverage xml generated by PartCover.exe? I have a batch file that runs PartCover.exe and my tests and generates the coverage xml without problems. Then I try to load the xml with PartCover.Browser.exe. "C:\Program Files\PartCover .NET 2\Par...

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 "/testcontainer:c:\CrusieControlProjects\AcademyPro\AcademyTests\bin\Release\AcademyTests.dll" --include [AcademyPro*]* ...

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

Hello, 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 sense). I noticed that in log file: for demo files, after line "Assembly AAAAAA loa...

How to generate an HTML report from PartCover results .xml

How to generate an HTML report from PartCover results .xml ...

Exclude System.Diagnostics.Contracts When Using PartCover

I am trying out the .net Code Contracts fro .net 3.5 I have some unit test that I am running PartCover over to calculate the code coverage. PartCover keeps including the System.Diagnostics.Contracts in my report. Here are the rules I am using to include MyProject and exclude everything else. <Rule>+[MyProject.DomainModel]*</Rule> <...

CorfFlags warning CF011 about strong name signed even after /force

Im trying to use Corflags to get PartCover running under x64. When I use: CorFlags.exe PartCover.exe /32BIT+ /Force i get: corflags : warning CF011 : The specified file is strong name signed. Using /Force will invalidate the signature of this image and will require the assembly tobe resigned. without /force i get: corflags : error C...

Partcover and Typemock integration

Hi, 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 details. I have been able to run the typemock tests via partcover, however, partcover is n...

How do I include full PartCover results with TeamCity 5?

Hi, 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 Patterns: [*]* Report XSLT: C:\Program Files\PartCover .NET 2.3\xslt\Report By Assemb...

Another PartCover Empty Report Question

I've tried the steps listed here, but I still can't get partcover to generate any output other than: <?xml version="1.0" encoding="utf-8"?> <PartCoverReport ver="2.2.0.36423" /> Here is what I've done: Installed 2.2 instead of 2.3 Ran corflags /Force /32bit+ PartCover.exe Ran corflags /Force /32bit+ PartCover.browser.exe Here is m...

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. I have added the a coverage.zip file to our setup and it is displaying the correct info u...

Getting Partcover and Gallio to work on the command line error, report is Empty?

Hello, I have gotten PartCover 2.3 and Gallio 3.1 to work through the Partcover coverage browser. When I try rerunning the command on the command line I am getting a CorProfiler is turned off, and then the report is empty? I am running from Admin shell. I also had read the following article. It says to use the /r:Local, I had to /r:Isola...

Is there CI server software that can do all of this?

I'm trying to put together a Continuous Integration server that will do the following: Work with subversion Use NUnit tests (fail build on failed tests) Use partcover (fail build on < X% coverage) Run code against FxCop (fail build on FxCop warnings, given settings) Run code against StyleCop (fail build on StyleCop warnings, given sett...

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 an "empty" report XML file: <PartCoverReport date="2010-03-30T16:09:05.1009099+01:00" /...

PartCover shows 0% coverage for getter and 100% coverage for setter despite the code being commented out

Hi all, I have a public property in my code as below: [DependencyInjection] public IEVentController EventController { get; set; } I also have a line of code referencing the EventController property: EventController.ExecuteObjectEvents( someObject, null ); Now currently (due to some missing implementation in another part of the...

PartCover 2.5.3 win 7 x64

Could you tell me how you got PartCover running with VS2008 and win 7 x64? Based on this post http://stackoverflow.com/questions/256287/how-do-i-run-partcover-in-x64-windows, I ran c:\Program Files (x86)\Gubka Bob\PartCover .NET 2.3>CorFlags.exe PartCover.exe / 32BIT+ /Force with result Microsoft (R) .NET Framework CorFlags Conversi...

PartCover code details

I am using PartCover 2.2/2.3(trying with both) on win 7 x64. After generating report and selecting view coverage details, I can see for each method the code coverage. When I click on a method I see on the right list with block, block length, visit count and has source(set to yes). I am using the money project from NUnit 2.5.2 samples. Ho...

How do you run PartCover with spaces in the path?

I have a msbuild file that I'm trying to run from Hudson CI. It outputs like this "C:\Program Files\Gubka Bob\PartCover .NET 2\PartCover.exe" --target "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" --target-args "/noisolation" "/testcontainer:C:\CI\Hudson\jobs\Video Raffle\workspace\Source\VideoRaffl...

PartCover and multiple TargetArgs

Hi I need to load coverage report from multiples test source, but if I set multiple dlls (two of them test the same class) in TargetArgs, the coverage data is overwritten with the results of the last dll. How can I add the results from multiples dll testing the same class? Here is an example of my partcover config file <PartCoverSett...