266 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
46
views
How to generate an OpenCover report for part of an application?
My Application starts with frmmain
Public Class frmmain
Private Sub frmmain_Shown(sender As Object, e As EventArgs) Handles Me.Shown
Call load_interface() ' Fetch backend data, prepare ...
0
votes
0
answers
141
views
Unable to Publish Code Coverage Report into Sonar Cloud. Use of OpenCover.Console.exe and Vstest.console.exe
Use of .Net Framework Application. I have tried to publish the code coverage result into Sonar Cloud Dashboard, but unable to publish the code coverage Report. Use of OpenCover.Console.exe + Vstest....
1
vote
0
answers
110
views
OpenCover 4.7.1221 Size of the xml output file more then OpenCover 4.6.166
I am just checking by executing single test case for Mstest framework for Dotnet 4.6 based assembly test case. It is generating more size compared to 4.6.166 version
C:\Users\xxx\.nuget\packages\...
0
votes
0
answers
69
views
What's the difference between alternative visited and just visited in the opencover?
Committing...
Visited Classes 0 of 18 (0)
Visited Methods 0 of 68 (0)
Visited Points 0 of 133 (0)
Visited Branches 0 of 74 (0)
==== Alternative Results (includes all methods including those without ...
0
votes
1
answer
344
views
File coverage tab is always loading and never shows coverage files when using OpenCover plugin in Jenkins
Background
I'm using OpenCover 4.7.1221 to run vstest.console.exe in a Jenkins pipeline via bat script in a steps block to generate a coverage.xml file. Then, I'm running the Code Coverage API plugin ...
0
votes
0
answers
58
views
IIS Workerprocess crashed
I'm working on a Asp.net web application code base and I have installed OpenCover 4.7.1221 version and using command prompt Administrator mode I executed a command to generate a code coverage report ...
2
votes
1
answer
390
views
.Net Core 3.1 Function App Unit Test Fails trying to find System.Runtime 4.2.2.0
I have an Azure Function app that works fine locally and works in the cloud. It works when I wrapped XUnit tests around it. However, when I tried to leverage OpenCover to run the unit tests to ...
0
votes
1
answer
749
views
Use OpenCover in .gitlab-ci.yaml
I have install OpenCover and Report Generator nuget, but do not know how to trigger run OpenCover in .gitlab-ci.yaml to run testing for getting the code coverage.
1
vote
0
answers
74
views
openCover reporting unexpectedly low coverage
I have the following code:
var isDuplicateCategoryIds = _query.Categories
.GroupBy(x => x.Id)
.Any(g => g.Count() > 1);
I have two tests that invoke this code, one where there are ...
0
votes
0
answers
857
views
How to use OpenCover for XUnit Test Coverage?
I would like to integrate OpenCover for XUnit test coverage to my Visual Studio project. I made a little example project just for testing the integration.
My example solution OpenCoverProject has two ...
0
votes
1
answer
1k
views
Trouble excluding classes from OpenCover code coverage report using Visual Studio 2019 Pro's ExcludeFromCodeCoverageAttribute
I am using Visual Studio 2019 Professional. For about a year and a half, I've been regularly producing code coverage reports by running a batch file that calls OpenCover to run the analysis and then ...
0
votes
1
answer
138
views
MSBuild get assembly names of tests
I'm working on generating coverage. One of the tests was taking a long time if the OpenCover filter was just +[*] so I've decided to add the assembly names. But this isn't an efficient approach as the ...
2
votes
1
answer
2k
views
OpenCover.Console.exe - Incorrect Arguments: The argument 'xxx.' is not recognised
I am implementing CodeCov for code coverage in c# with Visual Studio 2019 and I am using OpenCover and Xunit. My solution has two projects (Crossroads and CrossroadsUnitTests)
I have added the ...
0
votes
0
answers
43
views
OpenCover under the hood
I use OpenCover and it works fine for most of the cases. But I have one case when it doesn't understand that some piece of code is in use by tests. The case is when I execute something using Assembly....
3
votes
2
answers
13k
views
Python ValueError: not enough values to unpack (expected 3, got 2)
I am getting python for,
Code
_, threshold = cv2.threshold(gray_roi, 3, 255, cv2.THRESH_BINARY_INV)
_, contours, _ = cv2.findContours(threshold, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
contours = ...