code-coverage

Cobertura equivalent available for C# .NET?

Is there a Cobertura (or other code coverage tool) equivalent for C# .NET? ...

Why does Module::Build's testcover gives me "use of uninitialized value" warnings?

I'm kinda new to Module::Build, so maybe I did something wrong. Am I the only one who gets warnings when I change my dispatch from "test" to "testcover"? Is there a bug in Devel::Cover? Is there a bug in Module::Build? I probably just did something wrong. I'm using ActiveState Perl v5.10.0 with Module::Build version 0.31012 and Dev...

C++ code coverage tool for weird target platform

Anyone knows c++ code coverage tool usable under the following conditions: Target platform is PowerPC CPU inside Nintendo WII dev.kit, that runs custom embedded OS. The only way to exchange data with the PC is to use custom proprietary API (sorry for my NDA). Compiler is not Microsoft, not GCC, not even command line. Namely it's Metrow...

Use attribute to omit code from coverage analysis in Visual Studio

I have some classes that, for one reason or another, cannot be or need not be unit tested. I'd like to exclude these classes from my coverage metrics so that I can get a better feel for the coverage on the classes I actually care about. Right now I have to exclude the results after the fact. What I would like to do is use an attribute...

Gcov reporting unexpected cover results

I made some changes to a library to keep it inline with a project. I ran the test and everything still passed but the coverage is no longer 100%. I investigated and saw that the code is executed just not reported. But I have no idea why gcov is not reporting coverage for the line when it is executing. This is the code: int32_t Previous...

Writing a Path Coverage Tool

Currently, one of our production systems is handled by over 3000 programs written between 1986 and now . The code base is written in a non-standard language, which unfortunately lacks modern testing tools. In a bid to improve our code quality moving forward I have been working to incorporate processes and build tools that will improve d...

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 but I've never used a coverage framework. Does anyone have views on the best unit testing and code coverage frameworks around at the moment?...

Is there any info on NHibernate code coverage (by its test suite)?

Just curious. Tried to google this, but found nothing. I remember earlier there was some information related to this, but now I can't find anything at all. So... I'd appreciate any help ;) ...

MSBuild: build results shows 'no code coverage' while importing test-result does

I have a strange problem, my MSBuild runs tests, code-coverage and publishing fine (part of the build.txt shown): Results Top Level Tests ------- --------------- Passed BuildTestProject.UnitTest1.TestMethod1 Passed BuildTestProject.UnitTest1.TestMethod2 2/2 test(s...

Generate test coverage information from pyunit unittests?

I have some pyunit unit tests for a simple command line programme I'm writing. Is it possible for me to generate test coverage numbers? I want to see what lines aren't being covered by my tests. ...

Visual Studio: Code coverage not generated for signed assemblies

We are developing a system using c# in Visual Studio 2008. When I configure VS to instrument my dll's and run the tests, only the dll that is not signed gets instrumented (nice way to find that we forgot one). Is there a way to generate code coverage on signed dll's or do I have to un sign them, run the analysis and then sign them agai...

Does gcov give code coverage analysis for assembly language code.

Hello, I have an application which i build using gcc on linux host for ARM target processor. This generated arm executable i execute on a ARM development board i have. I want to do some code coverage analysis: 1.)Will gcov show code coverage if i have ARM assembly source files in my build environment? 2.) If my build environment has s...

Why doesn't gcov report any lines being covered by my unit tests?

I am using Xcode 3.2 on 10.6, with the shipped version of gcov and default GCC compiler (both version 4.2.1). I have created a dependent Cocoa unit test bundle which is injected into my app, and followed Apple's documentation on setting up a gcov-instrumented build configuration - based on the Debug configuration which doesn't have any c...

Why does Visual Studio say "Code Coverage is not enabled for this test run" when it's enabled?

In Visual Studio, I just created a simple Unit Test to test a method I wrote. I wanted to check the code coverage, but the Code Coverage window only ever states that "Code Coverage is not enabled for this test run". Why? Note: I've already followed the instructions on this page, i.e. the test configuration does have the relevant assemb...

Java code coverage in Hudson

I'm migrating a couple of projects from an ant build to a maven one. The build server is , and will remain, Hudson. I've been having trouble recording code coverage in hudson with cobertura due to the tests run and recorded twice problem. The project is multi-module and it would be nice, although not required, to have an aggregated out...

Javascript Code Coverage tool for IE

I've got a rather hideous and large javascript file that I've inherited from a dev I loathe. There is a lot of dead code, and I find I've spend a lot of time refactoring functions that aren't even called. Ideally, I just want something that can tie into the js engine and keep track of when and how many times functions are called. In F...

Can gcc/gcov be made to output coverage stats to a location other than the source folder?

When using gcc with -fprofile-arcs and -ftest-coverage, when the resulting executable terminates, it tries to create .gcda output files in the same location as the .o files used to compile the executable. This is inconvenient when I'm running on a different machine than the one I built on -- is there any way to change this behaviour? ...

Open source C++ Code Coverage tool with GUI?

Do you know any Open source C++ Code Coverage tool that support a decent GUI to facilitate browsing the result? Thanks. EDIT: I forgot to mention, My code is developed Using MFC so I need a tool that supports Windows. ...

code coverage for C language?

Is there a tool for code coverage for C language. I know there are many. But I wanted something like perl Devel::cover. Where I get: Line coverage Branch Coverage Condition coverage Subroutine coverage And all this in a nice HTML output. Is there anything like this for C? ...

Unit testing code coverage - do you have 100% coverage?

Do your unit tests constitute 100% code coverage? Yes or no, and why or why not. ...