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

How do I disable the "code not covered" glyphs in the OpenCover UI extension for Visual Studio 2015?

I would file a bug report but it seems like such an obvious piece of functionality that I must be missing something... These are the glyphs that appear in the editor window in the same bar as the breakpoints to indicate that a line of code was not…
ekolis
  • 6,270
  • 12
  • 50
  • 101
0
votes
1 answer

Opencover NUnit Coverage generation fails in Jenkins

I'm trying to get Jenkins to generate coverage reports using OpenCover. My project has NUnit unit tests. In Jenkins I'm executing the following script as a Build Step: C:\test-tools\opencover\OpenCover.Console.exe -register:user…
Nic
  • 12,220
  • 20
  • 77
  • 105
0
votes
1 answer

Is it possible too use Opencover with CTest?

I am new using Opencover and I would like to know if it is possible to use it with CMake tests because my project is already using it. mkdir build cd build cmake .. cmake --build . --config…
ABotella
  • 83
  • 1
  • 7
0
votes
2 answers

Can't get Gradle OpenCover plugin to produce coverage results

I'm not getting any results from opencover. My nunit tests all run and pass, just no coverage results. the problem seems to be opencover filters, but we aren't setting any. Any suggestions? The CodeCoverage.xml file contains a group of lines like…
Herb F
  • 135
  • 8
0
votes
1 answer

Opencover orderby issue

OpenCover was running fine until I replace this line of code : myObject = myObjectRepository.SelectAll().ToList(); by myObject = myObjectRepository.SelectAll().OrderBy(x => x.MyProp).ToList(); and then I loose the opencover's report : No results,…
jBravo
  • 873
  • 1
  • 9
  • 28
0
votes
1 answer

OpenCover: Coverable lines change with different runs

I have a website that I am trying to test and get coverage. I have 2 different runs: 1) Run IIS using opencover and then run selenium tests to hit the website. Also generate a report using ReportGenerator for only Selenium tests. 2) Nunit tests for…
Ankur
  • 177
  • 1
  • 1
  • 8
0
votes
1 answer

How can I import historical data into Report Generators test coverage history

I have several years of archival code coverage reports produced by various older versions of OpenCover and ReportGen. Looking at the most recent version of ReportGen, I've seen that it's added the ability to produce trendlines of code coverage over…
0
votes
1 answer

How to get NUNIT and OPENCOVER result without executing the test cases twice on CruiseControl.NET?

I have setup CC.NET to run NUNIT first and then OPENCOVER. I have around 2500 NUNIT unit test cases which takes around 2 hours for execution. For OPENCOVER same unit test cases are run by OPENCOVER and entire operation takes close to 5 hours. Is…
Ram
  • 11,404
  • 15
  • 62
  • 93
0
votes
1 answer

SonarQube Unit Test Coverage shows no information (only a hyphen)

SonarQube Unit Test Coverage shows no information, everything else seems fine. Setup Jenkins 2.7.2 master/slave approach (SonarQube process is running on a slave) SonarQube 5.6.1 (fresh install, no other projects running) MS Build Scanner for…
JosephS
  • 744
  • 5
  • 22
0
votes
1 answer

OpenCover coverage stats with Selenium Webdriver

I've been trying to get some coverage stats with OpenCover for my Selenium Webdriver automated tests to get a better idea what areas my tests aren't covering on the app. I've currently set up the web app on my local IIS and I'm using SpecFlow to do…
Matt C
  • 1
  • 1
0
votes
1 answer

Sonar server is showing Unit test coverage empty although i am using open cover

I am new to sonar and trying to use Sonar for code analysis including code coverage, unit test report etc. I am able to generate a report using OpenCover, i am using C#. My project is part of a jenkins job which build the soluton, run script for…
Monica
  • 93
  • 1
  • 12
0
votes
2 answers

Code Coverage of a Selenium Test

I have installed OpenCover through nuget. This is the line I'm running from my Command Prompt C:\myapp\Main\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"C:\Program Files (x86)\NUnit 2.6.4\bin\nunit-console.exe" -register:user…
NicoTek
  • 1,127
  • 1
  • 14
  • 34
0
votes
2 answers

I am using msbiuild to call my itegrations tests using open cover. I want to append all the results into one XML file. Is this possible?

I am using msbuild to call my integrations tests using open cover. I want to append all the results into one XML file. Is this possible? Currently I run open cover against each individual dll we have. This produces an xml file for each dll. Is…
0
votes
1 answer

Xamarin: PDB Files on OS X

I'm currently doing Xamarin development on an OS X machine and looking into code coverage tools. I've had some success with tools like OpenCover but they rely on PDB files being generated for the code being tested. It seems that Xamarin Studio on…
user3617723
  • 1,355
  • 3
  • 17
  • 37
0
votes
2 answers

TFSBuild - Saving OpenCover/ReportGenerator output for each tfs build on tfs2013

I'm currently trying to run custom code coverage using OpenCover and to generate output in easily readable format using Report Generator. The final output of these two applications is xml files. I am running these applications using InvokeProcess…
Abdul Hameed
  • 1,025
  • 12
  • 27