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
0
votes
1 answer

Test Runner Bin Path for executing via cmd on TFS (Opencover)

I'm trying to execute OpenCover to get code coverage results integrated with TFS build. This results are sent to SonarQube (via sonar-runner, that is included in the build template as an activity). I have two TFS Servers, One Controller and several…
0
votes
1 answer

Sonarqube with gallio openCover - how to?

I am trying to get the C# unit test coverage. Below is my sonar setup, but when I run sonar runner I don't see any thing related to unite test coverage and the result on browser it does not show any unit test coverage. My question is: the sonar c# …
vikas
  • 1,318
  • 4
  • 16
  • 33
0
votes
1 answer

Can OpenCover gather coverage statistics if it dies before the target application?

I'm trying to use OpenCover to get coverage metrics for a service using Topshelf. The application runs fine from the console. When the application runs it prints the following: The service is now running, press Control+C to exit. Then once…
afrosteve
  • 891
  • 2
  • 11
  • 16
0
votes
1 answer

OpenCover running against iis

Is it possible to determine which application pool and port to use when running opencover against iis for w3wp? I get error when run…
0
votes
0 answers

Coverage report using opencover

Well I am using opencover to generate the coverage report for the cpp code in html format. The report produced by the open cover seems to be like the amount of code covered by each test method as said in this post. First screenshot: Second…
abu
  • 249
  • 2
  • 3
  • 11
0
votes
1 answer

How to add filters to OpenCover tool to skip some of the functions in classes?

I am able to add filters to OpenCover for skipping the classes in open cover. I want to know, How to add filters to OpenCover tool to skip some of the functions in classes? For Example something like below(but it is not…
gramcha
  • 692
  • 9
  • 16
0
votes
1 answer

Register opencover with typemock isolater 7.1

I have installed Typemock Isolater 7.1 and OpenCover 4.5 installed on my development machine. When I go into TypeMock configuration and list the installed profilers Opencover does not appear. What do I need to configure to get Typemock to recognise…
sweetfa
  • 5,457
  • 2
  • 48
  • 62
0
votes
1 answer

How to use OpenCover plugin Visual Studio 2010

I tried to generate code coverage xml file. but i failed after adding the Nuget packages and enabled Nuget Package Restore on the solution. then open cmd and run this command .\packages\OpenCover.4.5.1604\OpenCover.Console.exe^ -register:user^ …
0
votes
0 answers

Use Open Cover to coverage my C# app

I am new in OpenCover for .net, i read there documentation, I succeed to cover a Tests applications by targeting MSTest.exe but most of times i don't want to create a unit test for projects, in that case, can i target my app directly like…
0
votes
1 answer

Unable to run the OpenCover against Silverlight application on 64-bit machine

I am using the OpenCover code coverage tool against silverlight application , but i am getting the following exception while running please help me. Cmd line Argument : D:\Work\Projects\IRI\AB\APTT\APTT…
Rakesh K
  • 11
  • 1
0
votes
1 answer

OpenCover not generating coverage results on sealed classes

I've been working on implementing OpenCover in a local build of some of the various APIs I work on for the sake of getting a decent testing report structure built for my team. When attempting to run the coverage against my NUnit tests however I've…
0
votes
1 answer

When running mstest under OpenCover, I get an error regarding the .vsmdi.trx file

I am having a problem when trying to run a VS10 test suite through OpenCover, using mstest as my target application. Running the tests directly with MsTest works with this command: "C:\Program Files\Microsoft Visual Studio…
nestedloop
  • 2,596
  • 23
  • 34
0
votes
1 answer

Run OpenCover, Gallio, MbUnit under Bamboo?

I have a C# project that I have used OpenCover and Gallio to run the MbUnit UnitTests from Nant script. I'm trying to set this up in Bamboo. I see Bamboo has NUnit runner, but doesn't seem to have anything for MbUnit. Any idea how one would run…
Orn Kristjansson
  • 3,435
  • 4
  • 26
  • 40
0
votes
1 answer

OpenCover results not matching TFS numbers

We have VS 2008 project (asp.net). It is under TFS. We have written our unit tests using mock framework(nunit?). Developers can execute the tests on their machine and view the code coverage. Now, we have upgraded our solution to VS 2012…
Saurabh Kumar
  • 2,329
  • 6
  • 32
  • 52
0
votes
4 answers

Integration of OpenCover with TFS

I am new to TFS and want to integrate OpenCover with TFS. If any has done this please help!
Sumit Gupta
  • 775
  • 7
  • 9
1 2 3
17
18