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

Using OpenCover or other tool to generate test report incremently

We are using OpenCover in C# project. Is there any way to append the result of new runs of the tests to the old results.xml generated by OpenCover? Or is there any other tool with this functionality?
OldSchool
  • 2,123
  • 4
  • 23
  • 45
0
votes
0 answers

Called by Open Cover, Nunit Runner Console throws NullReferenceException and hangs forever

In my project, I use Nunit 2 framework. In the build server, I use Open Cover 4.6.519 to analyze the code coverage with the following command: "OpenCover.4.6.519\OpenCover.Console.exe" …
Ha Pham
  • 373
  • 3
  • 18
0
votes
1 answer

dotcover/opencover link coverage to other assembly than test-assembly

I have divided my source code and tests in separate solutions for C#. In my tests I create link to the actual code and implement stub-implementations for its dependencies where I can't mock the implementation. If I run opencover or dotcover to get…
sanderarts
  • 324
  • 2
  • 10
0
votes
1 answer

Appveyor cannot find test coverage

I have a small project (.netstandard 1.0 + net45) on github which I integrated with Appveyor. I'm using xunit for unit tests and opencover for test coverage. I cannot get Appveyor to commit test results, here is the output: Committing... No…
Umut Özel
  • 354
  • 5
  • 17
0
votes
2 answers

Test Coverage .NetCore

I was looking for a TestCoverage for .netCore Xunit. I found OpenCover, but i have no sucess to execute the command to run it: C:\Users\andre.silva\AppData\Local\Apps\OpenCover\OpenCover.Console.exe…
André IT
  • 45
  • 7
0
votes
1 answer

Run all the tests but in the report only there are the methods that I want to run

I have to assemblies, one for the tests and the other one is the main assembly that has the methods that I want to test. In my test assembly I have many classes, each class tests the methods of the class of the main assembly. In total, in all the…
Álvaro García
  • 18,114
  • 30
  • 102
  • 193
0
votes
1 answer

Opencover: Include namespace/DLL for coverage analysis

I've googled around and read some of the stackoverflow questions, but didn't find a hint for my problem. I've a lot of third party DLLs. Since it is painfull to exclude every third party DLL by hand, it would be easier to include specific DLLs or…
Moerwald
  • 10,448
  • 9
  • 43
  • 83
0
votes
0 answers

Coverage report says zero coverage on C#.Net Test code (For Nunit test)

I am trying to get the code coverage for the C# test project(Nunit test case) Using OpenCover for sonarqube analysis. I ran the Following Executing cmd in command prompt(from the C# project solution folder & From C# project folder) but always i am…
user7014262
  • 135
  • 12
0
votes
1 answer

Exclude classes from code coverage in coveralls

Currently I learn Appveyor and i use coveralls for .Net code coverage of mine source code. When i looked on the report i saw that i have a couple of classes (mostly models) which i cannot cover with unit test. I found one attribute…
chunk1ty
  • 400
  • 3
  • 14
0
votes
0 answers

Appveyor runs tests but OpenCover doesn't show coverage

I am building the project and running test cases in appveyor. After successfully executing test cases the coverage data must be uploaded to coveralls. But in my case no error is thrown but coverage is being recorded. The details of my project are…
0
votes
1 answer

Opencover execute test cases on Category base

I need to execute test case dll using open-cover. C:\Users\Administrator\AppData\Local\Apps\OpenCover\OpenCover.Console.exe "-target:C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe"…
Sangeetha
  • 125
  • 1
  • 5
  • 18
0
votes
1 answer

OpenCover: Specify in an external file what assemblies should be ignored

We are putting in place some code analysis with openCover. I would like to know if it is possible to specify a file with the files to exclude from the cover? Typically, we have some external project that we have the code source and we want to…
J4N
  • 19,480
  • 39
  • 187
  • 340
0
votes
0 answers

ASP.NET Core System.Runtime not found on test

Been trying to run ASP.NET Core 1.1 xunit tests coverage from PowerShell with no success. When running I get the following error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral,…
0
votes
1 answer

How to use code coverage tools in continuous build integration of TFS 2013?

I am using the TFS 2013\VS 2013 professional editions for continuous build. Am looking to use an open source tool like OpenCover for code coverage. I have no prior experience in code coverage tools. I installed the OpenCover UI from Nuget but not…
0
votes
1 answer

Sonarqube not showing condition coverage from OpenCover

I'm testing SonarQube together with OpenCover in a .NET environment. I have a solution for a web-project, with some unit tests. I'm running NUnit through OpenCover to generate the xml-report for importing into SonarQube. I'm using the…