Questions tagged [dotcover]

dotCover is a tool for code coverage and continuous testing of .NET code. It integrates with Visual Studio, or can run coverage analysis on a Continuous Integration server.

JetBrains dotCover is a .NET code coverage analysis and continuous testing tool that:

  • Calculates code coverage in .NET and .NET Core applications.
  • Integrates into Visual Studio.
  • Highlights covered and uncovered code right in Visual Studio.
  • Shows which unit tests cover a particular piece of code.
  • Can run unit tests in Visual Studio on demand or continuously.
  • Supports popular unit testing frameworks including MSTest, NUnit, xUnit, and MSpec.
  • Provides a console utility to use with a Continuous Integration server. dotCover coverage analysis engine is available in JetBrains TeamCity out of the box.
  • Can fetch server-side coverage analysis results from TeamCity to Visual Studio.
  • Generates code coverage reports as XML, XML for NDepend, HTML, or JSON.
211 questions
4
votes
2 answers

dotCover excluded code still show up in report

I'm using Teamcity with NUnit and dotCover. In my configuration I exclude a specific namespace and its contained classes from dotCover coverage. This part is working fine, but when running the build, the resulting report still show the excluded…
Nikolaj Dam Larsen
  • 5,455
  • 4
  • 32
  • 45
4
votes
1 answer

Error in dotCover statistics when running from TeamCity

We have a number of projects that build and run tests via TeamCity. For these projects code coverage is calculated using dotCover. In some cases it counts the lines twice and therefore shows only half the coverage. The simplest example we have of…
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
4
votes
1 answer

Teamcity NUnit fails when using JetBrains dotCover

My build fails with this log: [12:13:40]: Checking for changes [12:13:41]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp [12:13:41]: Checkout directory: C:\TeamCity\buildAgent\work\9fecf8ffe0e03cce [12:13:41]: Updating sources:…
Simon
  • 3,235
  • 5
  • 36
  • 47
4
votes
1 answer

how to use "Dotnet dotcover test --dcFilters" command to exclude certain namespaces from code coverage

I am using dotnet dotcover test command in my gitlab-ci.yml to get the code coverage. I have included dotcover dotnetclitool version 2020.3.3 in my unit tests solution for this command to execute during the pipeline test stage. But i am not able to…
Pooja Arya
  • 121
  • 1
  • 11
4
votes
2 answers

Code coverage with .NET Core 2.0

I am trying to setup code coverage on our ASP.NET Core 2.0 web application. I use dotcover (from JetBrains) to provide code coverage on all my other builds (by running dotcover from the command-line during the build process). When I run dotcover…
DomBurf
  • 2,452
  • 5
  • 36
  • 71
4
votes
1 answer

How to get dotCover coverage report from multiple test projects in Jenkins

Sorry for posting another question in this category again so soon, but I've run into another problem. With some help from a kind user on here I figured out how to get multiple test projects results generated into the same result file, but now I need…
sunero4
  • 820
  • 9
  • 29
4
votes
1 answer

Dotcover Code coverage: Getting empty results from command line

I am working on the code coverage for my application.I am able to see the code coverage results from VS 2017(DotCover). But when i try to do the same from command line, the output file gets generated and it is showing empty results. Below is the…
vinay
  • 1,276
  • 3
  • 20
  • 34
4
votes
2 answers

Can I run JetBrains dotCover in a Linux Docker container?

I'm building and running a .NET Core application inside a Linux-based Docker container. I'm having trouble figuring out if dotCover is cross-platform? I want to either... Install and run dotCover inside the Docker container (that is $ dotcover…
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
4
votes
1 answer

FAKE (F# Make) dotCover coverage in TeamCity

I have a FAKE build script that contains a DotCover coverage step using using the DotCoverNUnit3 extension: let filters = "" !! (buildDir @@ "/*.UnitTests.dll") |> DotCoverNUnit3 (fun p -> { p with Output = artifactsDir @@…
Dan Ellis
  • 5,537
  • 8
  • 47
  • 73
4
votes
2 answers

DotCover shows only unit test source code not production code

I'm starting to use dotCover. I have a set of Debug compiled dlls + their pdbs. Then I've created a test project and executed resharper on it to see the coverage. What I'm getting is the coverage only of the unit test project instead of the whole…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
4
votes
2 answers

Why does this dotCover rake task fail using these relative file paths?

I'm having some issues getting dotCover to work in an Albacore exec task using relative paths. @xUnitRunnerPath = Pathname.new('../../Tools/xUnit/xunitcontrib-dotcover.2.0/xunit.runner.utility.dll').realpath @myTestDll =…
Neil
  • 5,179
  • 8
  • 48
  • 87
3
votes
1 answer

Trouble configuring TeamCity and dotCover

Im trying to configure TeamCity 6.5 with inbuilt NUNIT and bundled dotCover. For reasons I do not understand dotCover Merge command fails, along with all subsequent commands with some non-zero exit code. Using Nunit 2.5.10, x64 on a 64 bit machine,…
Zasz
  • 12,330
  • 9
  • 43
  • 63
3
votes
1 answer

How to exclude assemblies by mask *.Tests.dll from TeamCity coverage with dotCover?

I'm using a naming convention for my test assemblies: AssemblyOne.Tests.dll ProjectTwo.AssemblyTwo.Tests.dll ... I'm trying to exclude the assemblies from coverage with the pattern in mstest runner with dotCover: Assemblies…
George Polevoy
  • 7,450
  • 3
  • 36
  • 61
3
votes
1 answer

Integrate DotCover reports from TeamCity into SonarQube?

I'm having a hard time integrating DotCover reports from TeamCity into SonarQube. As far as I can see I'm doing everything correctly. I really feel like I've missed something? I'm currently using TeamCity 2020.2 build 84587 SonarQube…
3
votes
0 answers

How can we get code coverage for multiple applications in a single Visual Studio solution using dotCover? (command-line)

Here are JetBrains' instructions for a single application: D:\Program Files\NUnit 2.6\bin\nunit-console.exe AppTests.dll AppTests2.dll…
dthal
  • 581
  • 1
  • 5
  • 16
1 2
3
14 15