Tagged Questions

0
votes
1answer
12 views

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 ...
1
vote
0answers
136 views

NCover (v3.4.18.6937) does not collect any coverage information when testing with Moles (v0.94) and MSTest (v10.0)

currently I am trying to get a code coverage with NCover for a MSTest assembly which uses Moles as Isolation framework. After hours of testing NCover does not gather any coverage information. I ...
1
vote
1answer
66 views

Peculiar CodeCoverage Highlighting

When you run tests in Visual Studio (with activated CodeCoverage) the code is highlighted to show which parts of code have been executed and which not. There are three different kinds of ...
1
vote
0answers
52 views

Visualize change in test coverage with dotCover and TeamCity

Is there any way to visualize the change in test code coverage in dotCover/TeamCity between two build? Today we are able to see the overall change from the previous build (e.g. 70% -> 70.1%), but ...
0
votes
1answer
392 views

Ninject: System.Security.VerificationException : Operation could destabilize the runtime

I have the following code which works well, when tests are executed. But then i try to run these tests + code coverage calculation (SharpDevelop 4) it throws the exception. Can somebody describe why ...
1
vote
2answers
401 views

NUnit tests failing within OpenCover

My tests work just fine when executed directly with NUnit, but when executed through OpenCover (still with NUnit as the test runner), I get following errors: ProcessModel: Default DomainUsage: ...
1
vote
1answer
113 views

How do I hook into a service with OpenCover?

As a part of code coverage testing, I need to test several services. The OpenCover github mentions the ability to do this (Issue #36), but doesn't tell you how. The wiki "Usage" page doesn't mention ...
0
votes
0answers
198 views

Code Coverage analysis for .NET Compact Framework 2.0

Is there any Recommended solution for deriving Code Coverage analysis for .NET CF (Compact Framework), SmartDevice (Pocket PC) applications. We are using vsinstr +vsperfmon for Desktop Applications. ...
1
vote
1answer
237 views

Running a ranorex test(rxtst) file through dotcover

I need to find a way to automate some UI testing of .NET programs through ranorex and generate a summarized code coverage report in some form. I've been leaning towards using dotcover as the code ...
1
vote
2answers
169 views

How to unit test assemblies targetted at different platforms (64bit and 32bit) in visual studio

I have a visual studio C# projec targetted at different platforms (64bit and 32 bit). I also have an extensive unit test covering this project. The nature of the project is such that , the assemblies ...
0
votes
0answers
78 views

|C-Sharp Plugins Ecosystem| Bad coverage report

Process of code analysis is started from Hudson with Hudson-Sonar plugin. I'm using C-Sharp Plugins Ecosystem 1.1 with Sonar 2.12. I'm all configure but have one unusual error. In that revision used ...
1
vote
2answers
144 views

.NET - determining which test cases covered a method

I want to know the tests that cover a particular method. However, NCover does not provide this information. I dont want to use VSTS as my code is not in TFS. Is there any way/tool to do that in .NET?
1
vote
3answers
294 views

Code Coverage with Manual Testing in .NET

Is there any tool other than MS "vsinstr", that would help in collecting and better reporting for analysis purposes, Code Coverage for .NET? QA team performs Automation (Using QTP or any third ...
1
vote
4answers
219 views

How can I ignore some unit-tests without lowering the code-coverage percentage?

I have one class which talks to DataBase. I have my integration-tests which talks to Db and asserts relevant changes. But I want those tests to be ignored when I commit my code because I do not want ...
2
votes
1answer
213 views

DotCover Not giving coverage for refrenced DLL

i donwloaded the dotcover 1.1.1 for evaluation. We use a automation framework to run regression test where application 'X' refrences application 'Y's DLL . I need code coverage of application Y when i ...
0
votes
1answer
311 views

Measure code coverage with black box testing

Is there any way or any tool to measure code coverage during black box testing? I have to measure code coverage from a web application that runs on dot net source code.
0
votes
1answer
405 views

Why isn't opencover writing to the specified output file?

I'm running OpenCover with the following command line (wrapped for clarity) from an Admin Console. packages\OpenCover.1.0.625\OpenCover.Console.exe -register:user ...
0
votes
5answers
458 views

Runtime Code Coverage Tools

I know that there are a number of tools for analysing .NET code and calculating the coverage, plus identifying classes/methods/properties etc that are never going to be hit. However, I am trying to ...
1
vote
2answers
394 views

PartCover with TeamCity

I'm trying to setup partcover for .net 4 on x64 machine with TeamCity. Tests are executed, but coverage report shows 0 coverage. I'm getting the following message in log: No executable code was ...
2
votes
1answer
155 views

Code coverage while debugging in Visual Studio 2010

Is there a way to enable code coverage while debugging a asp.net site (+assemblies)? I know how to do this for Unit Tests, but not if I'm just debugging. What I'm actually trying to do is checking ...
6
votes
3answers
2k views

OpenCover generates an empty report

I am using OpenCover to determine code coverage for a simple C# project. The problem Although I can see MSTest running the unit tests (and succeeding) the generated report is empty. Details This ...
3
votes
1answer
948 views

Code Coverage for xunit

I am maintaining a system where there are some unit test written with xUnit. I need to bring code coverage to 90% what would be a good way to go about it? I have used MSTest before and it had a ...
3
votes
2answers
148 views

.NET code coverage tools don't work on native applications that load .net assemblies

I am writing a plug-in module for Revit Architecture, which provides a .NET API. Essentially, you create an assembly with classes that implement a specific interface. Revit then loads the assembly ...
5
votes
2answers
299 views

Effective Unit Test Coverage (and what should actually be tested?)

I see there's been several questions based off this topic, but I have some specific examples that I'm struggling with. I hope someone can help me here, as I'm new to test driven development and unit ...
5
votes
6answers
278 views

.net - Howto analyze how many different code paths are in a method

Is there a (preferred free) tool that can analyze how many different combinations are possible in a method? I am currently refactoring a method that has many many if/switch statments and I am curious ...
2
votes
4answers
195 views

NET Coverage tools require admin rights?

I'm trying to find a coverage tool i can use in a very restrictive dev environment, where nobody has admin rights. Which NET coverage tools require admin rights to run? What coverage tools do not ...
19
votes
3answers
472 views

PostSharp and Visual Studio Code Coverage

I've recently started using PostSharp in some of my projects and have noticed an unfortunate side effect - the code coverage in all the projects its used with drops significantly. I'm guessing the ...
0
votes
2answers
431 views

Code Coverage with MSpec

Can anyone recommend a free code coverage tool for use with MSpec on VS2010/.NET4? Can TD.NET do this?
1
vote
4answers
173 views

NCover Subscription - is it worth paying the money for it?

I just have a quick question in relation to the NCover software. NCover is an awesome tool but I do not have any historical experience with it to justify to my manager if buying the subscription is ...
1
vote
1answer
190 views

Open source code coverage tool for both managed and unmanaged code? [closed]

I need to generate code coverage metrics for a suite of nunit tests. The tests call functions in a managed dll which in turn uses PInvoke to call unmanaged dlls. I understand that VSTS can be used to ...
5
votes
9answers
391 views

Is there a tool to compare code modifications based on the call stack?

I wonder if there is a code comparison tool that take into account the call hierarchy of your code. Something like this: you provide the two projects to compare and which method and the file ...
4
votes
2answers
976 views

Any .net Code Coverage Plugin for Visual Studio 2010?

Can anyone please suggest me a good .net code coverage plugin for Visual Studio 2010 except dotCover? [dotCover 1.0 RC is buggy, it hangs VS 2010] The VS2010's own coverage tool does not support nUnit ...
1
vote
3answers
2k views

How to use: PartCover .NET 4 with NUnit 2.5.6

Say I have Test assembly (NUnit compliant) App.Test.dll and a library to be tested App.dll. How do I get the code coverage analysis using PartCover and NUint?
1
vote
1answer
118 views

What block is not being tested in my test method? (VS08 Test Framework)

I have the following code: private void SetControlNumbers() { string controlString = ""; int numberLength = PersonNummer.Length; switch (numberLength) { ...
1
vote
2answers
975 views

TFS and code coverage for web application (MVC) assemblies not working

I've got an MVC web application with associated controller tests that run under a TFS build as per normal. I can see the tests running and passing in the build log and they appear in the "Result ...
1
vote
1answer
211 views

New NCover 3.4.2 makes all my MSTest unit tests fail

Yesterday, I decided to install the newest NCover version (3.4.2). However, when I ran it on my existing .ncover configuration file, the NCover output suddenly reported that all my MSTest tests ...
1
vote
2answers
226 views

Code coverage in production

Any good tool/experience/story about using some code-coverage tool at early beta to early gold deployed applications? Platform is .net 2.0
6
votes
2answers
1k views

What is a good, free C# unit test coverage tool?

I'm looking for a tool that I can run against my code base to determine which areas of my code are covered by NUnit tests I've written. I would appreciate any suggestions at all, and example usage if ...
1
vote
2answers
276 views

Where is CoverageEye ? Or another free code coverage tool for .Net

I was looking for CoverageEye that was available on gotdotnet. But after closing, I'm unable to find it elsewhere. Do you know more about it ? Or another good code coverage tool for .net ? Thanks ...
7
votes
8answers
2k views

Unit Testing and Code Coverage Frameworks for .Net?

I am about to start a new project and am looking around for both a unit testing framework and some sort of code coverage profiler. I've used the unit test framework in Visual Studio Pro in the past ...
0
votes
4answers
946 views

Cobertura equivalent available for C# .NET?

Is there a Cobertura (or other code coverage tool) equivalent for C# .NET?
10
votes
7answers
1k views

Getting Started with TDD?

We are in the initial phase of trying to implement TDD. I demo'd the Visual Studio Team System code coverage / TDD tools and the team is excited at the possibilities. Currently we use Devpartner for ...
4
votes
2answers
145 views

Why would I *not* collect code-coverage data in unit tests, in VS2008?

If I'm running a suite of tests, is there a reason I would NOT want to collect code coverage data for the tests? What's the expected cost, in terms of runtime, storage, or anything else? I'm trying ...
6
votes
4answers
330 views

Should I Use a Code Coverage Tool?

I'm interested in using a code coverage tool for my next .NET project but was wondering if it is necessary for me? I'm the only developer in the company I work for, so would using NCover be a benefit ...
4
votes
3answers
809 views

Code coverage for people (manual) tests?

Are there any code coverage tools for manual testing? For example, if I write 30 new lines of code, compile, then run, is there any way to quickly verify that all 30 lines were run? Also, later, ...
4
votes
6answers
582 views

Code coverage in unit testing

This is about .NET libraries (DLLs). What are the options for measuring code that is covered by unit test cases? Is it actually worth the efforts (measuring the code coverage)? I wonder it might be ...
14
votes
3answers
8k views

MSTest Code Coverage

Is there a way to test code coverage within visual studio if I'm using MSTest? Or do I have to buy NCover? Is the NCover Enterprise worth the money or are the old betas good enough if Microsoft ...
5
votes
4answers
749 views

How can I use Mock Objects in my unit tests and still use Code Coverage?

Presently I'm starting to introduce the concept of Mock objects into my Unit Tests. In particular I'm using the Moq framework. However, one of the things I've noticed is that suddenly the classes I'm ...
123
votes
11answers
31k views

Code Coverage for C#/.NET [closed]

I wonder what options there are for .net (or C# specifically) Code Coverage, especially in the Lower Priced segment? NCover Seems to be very popular and looks quite good Supports statement coverage ...
5
votes
6answers
909 views

NCover on 64-bit system

What do you suggest to use for code coverage on 64-bit environment. It seems that NCover supports 64-bit only in Enterprise version which seems to be quite expensive. Or isn't it? What are people ...

1 2
15 30 50 per page