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
0
votes
2 answers

How to remove items from the keyboard list in Visual Studio's options dialogue

I have just uninstalled Jetbrain's dotCover 2.7 but it has left all its keyboard items in Visual Studio's (VS2013) options dialogue: How do I get rid of these?
Piers Myers
  • 10,611
  • 6
  • 46
  • 61
0
votes
1 answer

Code coverage with Visual Studio 2012 vs SONAR (dotcover and gallio)

Today I am running into some discrepancies between Visual Studio 2012 and SONAR code coverage analysis. When I execute Visual Studio 2012 code coverage analysis Test->Analyze Code Coverage->All Test it throws the below values Not Covered…
JAVH
  • 155
  • 1
  • 3
  • 13
0
votes
2 answers

dotCover with Teamcity 8.0.4 on windows server 2012 will not start build agent

Whn I try to run a NUnit and dotCover test with these settings: Teamcity tells me "Warning: No enabled compatible agents for this build configuration. Please register a build agent or tweak build configuration requirements.". When I go to the build…
mslot
  • 4,959
  • 9
  • 44
  • 76
0
votes
1 answer

Dotcover report (nunit) not covering all classes in assembly.

Dotcover report (nunit) is not covering all the classes in the assembly. When I see the report generated by Dotcover using nunit-console.exe (2.4.1), I find only couple of classes from the assembly but not all.
ssingh
  • 11
  • 1
0
votes
2 answers

Make TeamCity build fail if tests are not run

We have a setup where TeamCity builds the software and the runs the unit tests on it. We use a powershell script inspired by this answer, which runs the unit tests with vstest and reports code coverage with dotcover. Sometimes, developers make…
Wilbert
  • 7,251
  • 6
  • 51
  • 91
0
votes
1 answer

Team City Code Coverage includes excluded code in total

We have this issue with the Code Coverage in Team City (using dotCover). In the the coverage of statements, the percentage is calculated as covered/Total. Which is good. When we exclude neamespaces (e.g. the test code and 3rd party products), the…
Telekallis
  • 11
  • 1
0
votes
1 answer

create coverage report from script

I use dotCover for code coverage, and it's good, but the results appear to be written in a proprietary format, which I cannot parse. I want to create a script that analyses my .Net code base and returns the (say) 20 classes with the lowest code…
Aidan
  • 4,783
  • 5
  • 34
  • 58
0
votes
1 answer

How do I cover this method? Copy stream content to a second stream

I have the following method, it is an extension method and can be called by any Stream object. The method should copy the exact content of a Stream into another Stream. public static void CopyTo(this Stream input, Stream output) { const int size…
Raffaeu
  • 6,694
  • 13
  • 68
  • 110
0
votes
1 answer

Running dotCover as part of an MSTest build step in TeamCity

I'm currently running dotCover as a part of my MSTest build step in TeamCity. I've configured MSTest to run the assembly files matched by **.Tests.dll, otherwise everything else has default settings. I have no idea how dotCover decides which files…
user479911
0
votes
1 answer

DotCover 2.1 vs NCover for CCNet

I am trying to decide which code coverage tool I want to use with my CruiseControl.NET continuous integration server. Which would be a better tool: DotCover 2.1 or NCover 4.0 ?
user1409747
  • 91
  • 1
  • 8
0
votes
1 answer

Can I include uncovered assemblies in the DotCover statistics in TeamCity

I have a TeamCity 7.0 project that covers a solution with a number of output assemblies. The only assemblies that appear in the DotCover statistics are the ones that have at least one line of code covered by tests. Is it possible to also include…
Noob
  • 1,049
  • 1
  • 10
  • 20
0
votes
1 answer

Dotcover and Lighthouse produce no report data

I am trying to produce test coverage reports using dotCover and lighthouse. The dotcover cover command creates a 15Mb .dcvr file, but running dotcover report over that file produces empty results:
Myles McDonnell
  • 12,943
  • 17
  • 66
  • 116
-1
votes
1 answer

Unit Test for HashSet with auto implenented property initializer

I would like to write a unit test to check HashSet in C# MSTest to cover ICollection of my class, like this: public ICollection Object { get; private set; } = new HashSet(); Does anybody know how to Assert this section of…
Payam Khaninejad
  • 7,692
  • 6
  • 45
  • 55
-1
votes
1 answer

Error details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.0.0, Culture=neutralin JetBrains dotCover

I am working on code coverage analysis on.net core and i am using JetBrains dotCover, while executing on runtime i am getting file not found exception. could you please help me on this TIA
Vicky
  • 11
  • 1
-1
votes
1 answer

TeamCity dotCover without PDB files

I am running the following: TeamCity Enterprise 7.1.5 (build 24400) NUnit runner 2.6.2 dotCover (integrated) I need to get dotCover to work, but due to the size of the solution there is a MS Build file responsible for the build and as part of that…
Rob King
  • 1,131
  • 14
  • 20
1 2 3
14
15