question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No coverage for VB Solution

See original GitHub issue

Invoke from Developer Prompt, Core3.0 Project

dotnet test /p:CollectCoverage=true
Test Run Successful.
Total tests: 153
     Passed: 153
 Total time: 25.9027 Minutes

Calculating coverage result...
  Generating report 'C:\Users\PaulM\Documents\Visual Studio 2017\Projects\CSharpToVB\CSharpToVB.Tests\coverage.json'

+----------------------------------+------+--------+--------+
| Module                           | Line | Branch | Method |
+----------------------------------+------+--------+--------+
| CSharpToVBApp                    | 0%   | 0%     | 0%     |
+----------------------------------+------+--------+--------+
| HashLibrary                      | 0%   | 0%     | 0%     |
+----------------------------------+------+--------+--------+
| ManageProgressBar                | 0%   | 0%     | 0%     |
+----------------------------------+------+--------+--------+
| Microsoft.DotNet.XUnitExtensions | 0%   | 0%     | 0%     |
+----------------------------------+------+--------+--------+
| VB.CodeConverter                 | 0%   | 0%     | 0%     |
+----------------------------------+------+--------+--------+
| VBMsgBox                         | 0%   | 0%     | 0%     |
+----------------------------------+------+--------+--------+

+---------+------+--------+--------+
|         | Line | Branch | Method |
+---------+------+--------+--------+
| Total   | 0%   | 0%     | 0%     |
+---------+------+--------+--------+
| Average | 0%   | 0%     | 0%     |
+---------+------+--------+--------+

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21

github_iconTop GitHub Comments

1reaction
paul1956commented, Aug 15, 2019

Using either command below gives me full coverage for everything I want.

dotnet test ./CSharpToVB.Tests.vbproj /p:CollectCoverage=true /p:CoverletOutputFormat=json /p:CoverletOutput=./TestResults/LastRun/Coverage.json /p:Exclude=\"[coverlet.*]*,[*]Coverlet.Core*,[xunit*]*,[Microsoft.DotNet.XUnitExtensions]*,[ManageProgressBar]*,[VBMsgBox]*,[CSharpToVBApp]*,[HashLibrary]*"
dotnet test --collect:"XPlat Code Coverage" --settings coverletArgs.runsettings

Don’t know what changed but everything works

0reactions
MarcoRossignolicommented, Aug 14, 2019

Paul any news?Can we close?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No coverage for VB Solution · Issue #502
Invoke from Developer Prompt, Core3.0 Project dotnet test /p:CollectCoverage=true Test Run Successful. Total tests: 153 Passed: 153 Total ...
Read more >
Troubleshoot code coverage - Visual Studio
Possible reasons for seeing no results or old results; Some code is always shown as not covered; References. Applies to: Visual Studio.
Read more >
Code coverage testing - Visual Studio (Windows)
Learn how to use the code coverage feature of Visual Studio to determine what proportion of your project code is being tested by...
Read more >
Problem with .NET framework with VB and C# in one solution ...
Intro SonarScanner is not able to process very basic project of .NET framework with two languages used.
Read more >
code coverage not working - Developer Community
I have created a simple solution with a class library project and a unit test project. The test runs but then no coverage...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found