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

OpenCover misses nested test class test methods

I have structured my Tests in Visual Studio like so: [TestClass] public class TestContainer { [TestClass] public class MoreSpecificContainer { [TestMethod] public void Test_Should_ReturnSomething() { } …
codenewbie
  • 181
  • 16
0
votes
1 answer

OpenCover- Open cover saying missing PDBs when working with vstest.console.ex in tfs build definiton

I am trying to integrate Opencover with TFS2013 for custom code coverage. I am passing the parameters necessary for running Open Cover via build definiton nad invoking OC using a InvokeProcess activity in the build process template. I am following…
Abdul Hameed
  • 1,025
  • 12
  • 27
0
votes
0 answers

opencover ui code coverage results not showing coverage for my tests, but for other .dlls

As I am using VS 2015 professional, and code coverage is not available for me. I was following this guide: https://visualstudiogallery.msdn.microsoft.com/6950a046-8919-4935-8542-c6f37956f688 Everything is fine except Step 3. It doesn't show my…
Oak
  • 1,159
  • 3
  • 13
  • 21
0
votes
1 answer

OpenCover / ReportGenerator struggling to get the -coverbytest working. even when I dupe a particular test

Sorry guys just started using this the other day. I too am struggling to get the -coverbytest working. Below are the two command I am running to get results. I have tried the and reread the documentation and found conflicting usage for the command…
0
votes
1 answer

How to filter by several class name in opencover and report generator in bat

How to filter by several class name in opencover and report generator in bat file It is necessary to receive only those classes in namespace .AutomapperConfigurators. or ProjectName.BL.ServiceInteraction.* for…
Roman Kiyashev
  • 150
  • 1
  • 11
0
votes
0 answers

OpenCover.Console test fails when code reads data from config file

I have this strange problem. When I use the OpenCover from Visual Studio all tests pass and everything seems fine. Image from Visual Studio here: https://i.stack.imgur.com/awmWy.png But when I want to automate the tests using the…
Igor Dimchevski
  • 412
  • 3
  • 13
0
votes
1 answer

SonarQube 5.1.1 alternative to Gallio with OpenCover

what is the best way to use code coverage in c# with the new SonarQube 5.1.1 ? I believe that the previous way with the following settings do not apply no more : # Gallio sonar.gallio.mode= sonar.gallio.installDirectory=C:\Program Files\Gallio …
Builder Bob
  • 151
  • 1
  • 10
0
votes
0 answers

.Net code coverage using OpenCover

I am using Open Cover to get .net code-coverage, command used is OpenCover.Console.exe -target:"C:\Windows\System32\inetsrv\w3wp.exe" -targetargs:"-debug -s 3" -targetdir:"XXX" -register:administrator -output:"D:\TestCaseNewOpencover.xml" I…
0
votes
1 answer

OpenCover missing PDBs exception

I am working on a Windows Phone 8.1 app. This app has it's Unit Tests implemented using the MSTestFramework. To run the tests we need to use vstest.console.exe and also generate an .appx file for the unit test project. Now I need to use OpenCover…
Syed Ali
  • 1,817
  • 2
  • 23
  • 44
0
votes
1 answer

Starting Windows service with OpenCover throws System.ServiceProcess.TimeoutException

I'm using OpenCover to start and cover a Windows service. I didn't write the service, but I've spoken to the developers and they said that on a good system, it can take up to 45 seconds for the service to complete all of its startup tasks. I'm able…
Sean Cogan
  • 2,516
  • 2
  • 27
  • 42
0
votes
1 answer

How to execute Unit Test with Sonar Qube 5.0.1

I was able to execute Unit test with lower version of Sonarqube but then i upgraded to SonarQube 5.0.1. Then suddenly my Gallio was not working. I found in some blocks that support for gallio was not available in sonarqube 5.0.1 Is there any other…
0
votes
1 answer

How to set dll search path of MSTest used with opencover?

My unit tests have dependencies which are from a pool of dlls in a directory outside of the project. We have the policy to generally place links to these dlls (from the pool) in a directory called "System" inside the project directory and set their…
David
  • 2,426
  • 3
  • 24
  • 36
0
votes
1 answer

When will pdb files be copied to shadow copy directory?

I am doing some modifications on OpenCover and NUnit to suit my needs. Briefly, I want to get coverage information even when shadow-copy is enabled in Nunit. However, OpenCover is unable to track an assembly when the pdb file is absent. When…
Nan Wang
  • 736
  • 1
  • 6
  • 5
0
votes
1 answer

How to add to inclusion rules to OpenCoverage?

I'd like to limit the coverage of my OpenCover process to something like this: +[BaseName.NameSpace1.*]* +[BaseName.NameSpace2.*]* and I'd hope see only those classes under BaseName.NameSpace1 and BaseName.NameSpace2 but in my attempts all I get are…
Maniaque
  • 712
  • 1
  • 7
  • 20
0
votes
2 answers

OpenCover report

We are using OpenCover to examine our code coverage. We have big number of test and as a result OpenCover generates ~100 reports. ReportGenerator creates summary of Sequence Coverage, but we also need to know branch coverage summary of all tests, so…
Bor1ss
  • 39
  • 7