Questions tagged [opencover]

OpenCover is a code coverage tool for .NET and currently supports .NET 2, 3 and 4

OpenCover is a new attempt to build a code coverage utility to try and address some of the issues that have been encountered whilst maintaining PartCover.

The main aims of this project are:

  • Provide 32 and 64 bit support for .NET2 and .NET4
  • Better generics handling, though PartCover has been upgraded to handle .NET4 and generics (in both .NET2 and 4) it isn't pretty.
  • Simpler coverage handling
  • Better test support - the ultimate aim is to use the information to show what tests currently cover the code being worked on i.e. would it be possible to run those tests first and then the rest of the tests to provide faster feedback during development.
266 questions
1
vote
1 answer

OpenCover not generated Nunit result

In our continuous integration process we are using Jenkins, NUnit and OpenCover. Every Jenkins job runs NUnit and OpenCover, but OpenCover calls the NUnit batch file in order to determine code coverage; therefore NUnit is executed twice. For example…
Koektudis
  • 103
  • 1
  • 7
1
vote
1 answer

How can I build OpenCover, and update it to .NET 4.5.1?

I've been using OpenCover as part of a project, and one of the pieces of software I need to cover is targeting .NET 4.5.1. However, OpenCover is targeting .NET 4.0. This is causing a problem with the software we're trying to test, because it expects…
Sean Cogan
  • 2,516
  • 2
  • 27
  • 42
1
vote
0 answers

How can I access an ASP.NET MVC application through IIS Express while using OpenCover?

I am using OpenCover to cover a very simple ASP.NET MVC application. It's basically just a shell application: a handful of controller methods and not much else. I am attempting to user OpenCover to launch an instance of IIS 8.0 Express, through…
Sean Cogan
  • 2,516
  • 2
  • 27
  • 42
1
vote
1 answer

Gallio not working with sonar-runner

I'm trying to get sonar-runner to run Gallio and OpenCover on my .net application. I've set up the following: Sonarqube v4.3.2 Gallio v3.4.14 NUnit v2.6.3 OpenCover v4.5 Sonar-runner v2.4 Here is what I have in my sonar-project.properties file…
hafsteinn
  • 15
  • 1
  • 5
1
vote
1 answer

OpenCover Output xml file has 0% code coverage

I am trying to check code coverage of my tests using OpenCover but the generated output xml has 0% code coverage and modules block is empty. I am using following commandline argument to check codecoverage opencover.console -target:"C:\Program Files…
Rahul Lodha
  • 3,601
  • 7
  • 25
  • 34
1
vote
1 answer

Typemock configuration profiler coverage

I've installed TypeMock 7.4.3 and set completed trial license, but I don't see the tab "Profilers/Code coverage" in the configuration tool. I've read user guide and TypeMock forum and found no answer. I need to use profile linking to integrate…
1
vote
0 answers

OpenCover shows code coverage for C# projects but not C++ CLI native project

I have a large visual 2013 solution composed of 20+ projects paired with test projects that use NUnit for unit testing. All of these projects are straight C# except one with that wraps an external C++ class which uses C++ CLI. The wrapper class is…
William
  • 69
  • 6
1
vote
1 answer

how to change/relocate the cs file path of OpenCover

I want to change the cs file path of result.xml like the following. The default file path is the build path, how to change it in the execute time of OpenCover?
1
vote
1 answer

Running Open Cover on a WCF service (without stopping the service)

Currently I am using the following to run my OpenCover on my service layer, net stop w3svc /y OpenCover\OpenCover.Console.exe -target:C:\Windows\System32\inetsrv\w3wp.exe -targetargs:-debug -targetdir:B2.4.9\Application\Sample.Web.WCF\bin…
1
vote
3 answers

Open generated HTML report in post-build event

In the post-build event of my unit test project I run OpenCover and ReportGenerator to get a code coverage report: del "$(SolutionDir)TestResults\Coverage\*.*" "$(SolutionDir)packages\OpenCover.4.5.1923\OpenCover.Console.exe" -register:user…
1
vote
1 answer

Syntax for using OpenCover with a service

I am trying to incorporate code coverage into an application. Since I am using VS Express, OpenCover seemed like the best (read: only) option. The application is a silverlight web application, with multiple services. I have managed to get the…
1
vote
2 answers

OpenCover in localhost with C# MVC 4 app

I just want to try OpenCover to get Coverage statistics from my app. But I don't understand well how to use it. So here my questions? Does the dll's have to be in the same directory? (my solutions have several projects) Any example to get Coverage…
mspasiuk
  • 602
  • 1
  • 7
  • 23
1
vote
1 answer

What is the expected usage model for solution-specific OpenCover instances via NuGet?

If I install OpenCover into a solution via NuGet, I get the expected files under, e.g., a packages\OpenCover.4.5.1604 folder. However, OpenCover's profilers require COM registration in order to function properly. I recognize that it's possible to…
Nick Jones
  • 4,395
  • 6
  • 33
  • 44
1
vote
1 answer

What does Total lines constitute in ReportGenerator?

I'm using the opensource tool ReportGenerator to show the details of the XML output generated from using OpenCover and mstest. For one particular project I see the following metrics: Covered Lines: 3611 Uncovered lines: 3587 Coverable lines:…
atconway
  • 20,624
  • 30
  • 159
  • 229
1
vote
1 answer

OpenCover not producing results under CruiseControl.NET

I have a really weird situation where OpenCover isn't producing results under CruiseControl.NET, but if I run the identical command-line from the command prompt, it does produce results. The following is from my CruiseControl build log: Build…
Pete
  • 6,585
  • 5
  • 43
  • 69