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.
203 questions
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,232
  • 3
  • 27
  • 55
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
  • 650
  • 4
  • 24
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
  • 20,318
  • 20
  • 92
  • 173
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,077
  • 7
  • 44
  • 71
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
  • 20,097
  • 26
  • 114
  • 195
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
  • 4,949
  • 7
  • 42
  • 82
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
  • 11,609
  • 9
  • 37
  • 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
  • 6,775
  • 3
  • 30
  • 58
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
  • 461
  • 1
  • 4
  • 11
3
votes
1 answer

dotCover not generating coverage for all assemblies

I've set up dotCover to run using an .xml c:\dotcover\xunit\xunit.console.exe "INWK.Configuration.UnitTests.dll" …
ShaneKm
  • 18,605
  • 41
  • 141
  • 250
3
votes
1 answer

When using dotCover in a TeamCity build configuration, is there an environment variable for code coverage percentage?

When using TeamCity to manage .net projects, we like to use dotCover to evaluate our code coverage. In the past using NCover, there was a way to retrieve the code coverage percentage using an environment variable. We liked this and we would set…
shanabus
  • 12,601
  • 6
  • 47
  • 75
3
votes
1 answer

Why does enabling JetBrains dotCover cause NUnit test to fail?

I wrote some code that looks like the following, to unit-test the implementation of a C# finalizer method. In TeamCity version 2017.1.3, I use a build step with the NUnit runner type to run this test using NUnit.ConsoleRunner.3.7.0. The test fails…
hwaien
  • 397
  • 1
  • 2
  • 11
3
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,176
  • 2
  • 19
  • 32
3
votes
0 answers

dotCover Nunit over command line

I'm trying to run dotCover over command line. It's working fine with VisualStudio2010 but its not working over command line. I get the error: "Either assembly contains no tests or proper test driver has not been found." enter image description…
Lino556
  • 133
  • 1
  • 9
3
votes
1 answer

StackOverflowException with JetBrains dotCover in TeamCity

I use TeamCity to support continuous integration of a project. Currently, when I run .NET Code Coverage: JetBrains dotCover for a specific project then the dotCover crashes with StackOverflowException. Also, the unit test 'TestSomething' is correct…
1 2
3
13 14