About 1,890 results
Open links in new tab
  1. Code Coverage in VS2022 and SonarQube using test frameworks

    Apr 20, 2022 · Install the coverlet.collector nuget package in your unit test projects and generate coverage reports with dotnet test --collect:"XPlat Code Coverage". Look at their extensive documentation if you want to know about combining reports, generating html pages from your results, and more.

  2. How to get Code Coverage from Unit Tests in Visual Studio 2022 ...

    Dec 12, 2021 · You have Fine Code Coverage working with VS 2022, you can access to it here https://github.com/FortuneN/FineCodeCoverage/releases and click on the 2022 file. After that, it´s just a plugin that you install on your computer and it´s available to every single project without the need to add it project by project.

  3. .NET test coverage | SonarQube Server Documentation

    SonarQube Server supports the following .NET test coverage tools: Visual Studio Code Coverage; dotnet-coverage Code Coverage; dotCover; OpenCover; Coverlet; Additionally, a generic coverage format is also supported if you wish to use an unsupported tool (though you will have to convert its output to the generic format yourself).

  4. SonarQube Test Coverage with MsTest - Stack Overflow

    Aug 4, 2015 · Now the situation is much easier: Launch your favorite code coverage tool, ask it to produce a report, and feed it to the MSBuild SonarQube Runner. If you are using Team Foundation Server 2013, enabling code coverage is as choosing the Enable Code Coverage option in the build definition.

  5. Determine code testing coverage - Visual Studio (Windows)

    Dec 13, 2024 · To determine what proportion of your project's code is being tested by coded tests such as unit tests, you can use the code coverage feature of Visual Studio. To effectively guard against bugs, your tests should exercise or 'cover' a large proportion of your code.

  6. Use code coverage for unit testing - .NET | Microsoft Learn

    Jan 29, 2024 · To use Coverlet for code coverage, an existing unit test project must have the appropriate package dependencies, or alternatively rely on .NET global tooling and the corresponding coverlet.console NuGet package.

  7. Continuous Integration in VSTS using .Net Core (with Code Coverage ...

    May 21, 2018 · As you saw within Visual Studio, running tests with code coverage can be trigged via a simple click on the context menu. If you want to execute your unit test with code coverage in a command line, you invoke /EnableCodeCoverage switch.

  8. Adding NUnit code coverage to SonarQube using OpenCover

    Nov 5, 2017 · In this blogpost I’ll explain how to add your NUnit code coverage to your project analysis results, by using OpenCover. You can find a sample project you can use to try it out yourself on my github. In short, SonarQube is a tool for …

  9. Test coverage and execution - SonarSource

    SonarQube doesn't run your tests or generate reports. It only imports pre-generated reports. Below you'll find language- and tool-specific analysis parameters for importing coverage and execution reports.

  10. How to import nUnit/OpenCover results to SonarQube

    Sep 6, 2019 · I have some nUnit tests but I'm struggling to get the code coverage data imported to SonarQube. I have successfully used SonarScanner.MSBuild (sonar-scanner-msbuild-4.6.2.2108-net46) to import the code analysis and number of nUnit tests to …

  11. Some results have been removed
Refresh