code-coverage

Possible to be adequate with respect to decision/condition coverage but not block coverage?

Following up on a debate that I was having with a colleague. What is the community's opinion on whether or not a section of code can be adequate with respect to decision coverage (all possible decisions have evaluated to true and false) but not block coverage, and if a section of code can be adequate with respect to condition coverage (e...

"No source for code" message in Coverage.py

I ran a build last night, successfully. I got up this morning and ran another without changing any configuration or modifying any source code. Now my build is failing with the message "No source for code" when running my nosetests with coverage. NoSource: No source for code: '/home/matthew/.hudson/jobs/myproject/workspace/tests/unit/ut...

Team City and Visual Studio 2010 and Coverage Tool

Hi everyone ! In my team we shall use Visual Studio 2010 and .NET 4.0 as soon as possible and I have a question regarding VS 2010 and Team City. In VS2010 there is a simple tool to measure mstest coverage. Question: Is it possible to read the result of ms-Coverage from team city? If yes, how do we set up that configuration. best Regar...

coverage of xml document with variables and paths

For coverage, I've a set of run time variables of from my program execution. It happens that I get it from a series of executions(Automated testing). ie. its a vector<vector<var,value>> I've a limited set of variables with expected values and generate combination s, that is I have vector<vector<var,value>(smaller than the execution vect...

how to exclude a Web Reference from Code Coverage in VS 2008 Team System

When I run my MSTest tests in Visual Studio 2008 Team System and get code coverage results, I always see a particular web service included. I don't care how well this web service is tested, I'm intentionally only using a small part of it. How can I exclude the Web Reference from showing up in my Code Coverage results? I see that someo...

NCover Hudson Plugin fails on Slave

Hi I'm trying to get NCover to work with our hudson server. The .NET jobs are run on a windows slave while the master is a linux box. After a job finishs successfully (also generating ncover+nunit reports), the NCover.Plugin tries to copy the report files from the ncover output directory to the job's directory. Here is the error messag...

Undefined symbols when attempting to use CoverStory with iPhone app: _vproc_transaction_end, _vproc_transaction_begin

After following these steps to set up an iphone project with CoverStory, my build fails with two linker errors. Undefined symbols: "_vproc_transaction_end", referenced from: _gcov_exit in libgcov.a(_gcov.o) _vproc_transaction_end$non_lazy_ptr in libgcov.a(_gcov.o) (maybe you meant: _vproc_transaction_end$non_lazy_ptr...

How can I get 100% test coverage in a Perl module that uses DBI?

I am a bit new to the Devel::Cover module, but have found it very useful in making sure I am not missing tests. A problem I am running into is understanding the report from Devel::Cover. I've looked at the documentation, but can't figure out what I need to test to get 100% coverage. Edit - I should make it clear that I am not sayin...

Obtaining C++ Code Coverage

I'm on Linux. My code is written in C++. My program is non-interactive; it runs as "./prog input-file", processes the file, and exits. I have various unit tests "input-file0, input-file1, input-file2, ..." For designing new unit tests, I want to know what lines of code existing tests do not cover. Question: Given that I control how "p...

what to do if 100% MCDC is not possible????

what the decision should be taken if 100% MCDC is not possible. Should the requirements be changed/design be changed/coding be changed??? ...

Is it possible to get code coverage data for a GWT web app running tests from the web browser?

I am not sure if this is possible but I would like some way to get code coverage information for tests that are written in Quick Test for our GWT based web app. It does not seem like there is any solution because the Quick Test Pro tests are testing against the GWT compiled app and not the original java code in which the app was written...

No test coverage files generated for Unit Test bundle in Xcode

The Problem I've got a Cocoa project on the desktop and I'm using Xcode 3.2.1 on Snow Leopard 10.6.2. I want to generate code coverage files for my Unit Test Target in Xcode. What I've Tried As articles like this one suggest, I've adjusted the build settings to: “Generate Test Coverage Files” checked “Instrument Program Flow” checke...

PartCover shows 0% coverage for getter and 100% coverage for setter despite the code being commented out

Hi all, I have a public property in my code as below: [DependencyInjection] public IEVentController EventController { get; set; } I also have a line of code referencing the EventController property: EventController.ExecuteObjectEvents( someObject, null ); Now currently (due to some missing implementation in another part of the...

No coverage for runtime with Devel::Cover and ModPerl::Registry

When I'm running Devel::Cover with ModPerl::Registry, I get no coverage info except for BEGIN blocks. When I'm running the same script with Devel::Cover from command line or as a CGI, everything works alright (obviously). How can I make Devel::Cover "see" my code being executed in the runtime? Here's Devel::Cover related stuff in my ht...

Python Pre-testing for exceptions when coverage fails

I recently came across a simple but nasty bug. I had a list and I wanted to find the smallest member in it. I used Python's built-in min(). Everything worked great until in some strange scenario the list was empty (due to strange user input I could not have anticipated). My application crashed with a ValueError (BTW - not documented in t...

Does VS2010 Code Coverage support nUnit?

According to this schema VS2010 Premium and Ultimate has a tool for checking Code Coverage - together with a few other testing tools. Does this support nUnit too, or just MS test? ...

structural coverage of java code

hi, do you know if there is any tool which makes structural coverage of java code? did Junit do this ? any links,documenetation which could help me? thanks ...

Setting up NCover for NUnit in FinalBuilder

Solved: Look at the bottom of this question for the working configuration I am attempting to set up NCover for usage in my FinalBuilder project, for a .NET 4.0 C# project, but my final coverage output file contains no coverage data. I am using: NCover 3.3.2 NUnit 2.5.4 FinalBuilder 6.3.0.2004 All tools are the latest official as ...

What do the columns in Perl's Devel::Cover output mean?

In the "Perl build, unit testing, code coverage: A complete working example by Kurt W. Leucht" we see that we run build testcover and bet the coverage report. We see the result in the figure "File Cover". Can anyone tell what does the number shown under stmt, bran, sub and time indicate? ...

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 failed. Of course those tests succeed when ran within Visual Studio. Because of this, NCover isn't able to determine any coverage. Somehow the o...