Tagged Questions

"Code coverage" (synonym: test coverage) is a measure of the amount of application source code that has been exercised, usually by some testing regime, often by unit testing.

learn more… | top users | synonyms (1)

-1
votes
3answers
19 views

PHP Maximum Coverage

I have a bunch of PHP files that I would like to analyze. What I would like to do is the following: Input: php file Output: the input parameter values like $_GET['a']=='test1' and ...
0
votes
1answer
24 views

How do I exclude all constructors from Visual Studio Code Coverage results?

I am creating a RunSettings file that will exclude all properties and constructors from the code coverage results in VS2012. I am aware of the ExcludeFromCodeCoverage attribute, however I want to ...
1
vote
1answer
20 views

Class files are missing in code coverage result

I have a number of classes in my project. When I check Code Coverage result after running the unit test cases, it does not show all the classes. I am not sure what are the criteria on which the code ...
0
votes
0answers
20 views

Excluding some classes from cobertura report

I am using a gradle-cobertura plugin for generating test coverage report which can be found here. The plugin is working absolutely fine. Now I am trying to exclude some of the classes from the ...
2
votes
0answers
16 views

Fail a build if code coverage is below a threshold in TFS2012

I'm trying to fail builds in TFS Service (Hosted TFS2012) when Code Coverage is below a threshold. I've been messing around with the solution at ...
0
votes
1answer
23 views

understanding code coverage results

I have a strange coverage result in visual studio: it appears as the if statement was not covered but since we did enter the block it must have been. Why are those results wrong? (those result cover ...
0
votes
1answer
10 views

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 ...
0
votes
0answers
7 views

gcovr doesn't recognise conditionals from Xcode 4.5

I have an Xcode 4.5 project for iOS 6.0 and I am trying to set up test coverage for Jenkins with Cobertura. I have set up a test target and have configured both the main target and the test target ...
0
votes
3answers
21 views

Cannot redeclare class error with CodeCoverage and Composer

I'm getting an error with PHPUnit Code_Coverage when using Composer's autoload.php as the bootstrap file. I've created my own boostrap.php file and simply include each file individually and everything ...
0
votes
1answer
38 views

Smart unit tests choosing after commit

I'm looking for a tool that can solve following problem: Our complete unit tests suite takes hours to complete. So when programmer commits code, he gets tests result after few hours. What we would ...
0
votes
0answers
23 views

Jscoverage with jasmine don´t work

I`m using unit testing jasmine in a PhoneGap project, i will to test the test coverage of my unit testing, i installed jscoverage but when i try to run it it won´t show any report. The problem it ...
0
votes
0answers
10 views

EclEmma Coverage checking using Eclipse

I want to check my test coverage of GWT codes using EclEmma, when i run coverage it always shows zero percentage of coverage in report. Can any one help me out.. Below is the image of coverage report, ...
3
votes
2answers
46 views

How to make Perl's Devel::Cover ignore certain lines in coverage total?

In some code coverage tools you can "hide" certain lines of code from the coverage tool, so that those lines do not count towards the coverage totals. For example, some code might be run only in ...
0
votes
2answers
39 views

Cobertura not analysing the project in grails

I'm using grails 1.3.7.I installed code-coverage plugin.And placed the cobertura 1.9.4.jar and asm2.2.3.jar in project lib folder in STS workspace.Running using grails test-app -coverage ...
0
votes
1answer
18 views

Where can I get the latest genhtml for mac? [closed]

The genhtml tool that generates a code coverage report on my mac is really old - v1.6 (2007-08-20) I need a newer version to get branch coverage. Does anybody know where I can get a new version? I ...
1
vote
1answer
46 views

Sonar + jacoco agent code coverage for non-webservice modules

I'm trying to use jacoco agent for collecting FT code coverage of web-site by adding "-javaagent..." to jetty and running external selenium tests (or, for example, manual testing). At the end of ...
0
votes
0answers
37 views

is it a bug of lcov or meaningful about the different hit count in one function?

10 [ + - ][ + - ] : 2 : Conf::~Conf() {} 11 : : 12 : : 13 : 2 : Conf::Conf( std::string filename, ...
-3
votes
0answers
42 views

How to read the code-coverage report generated by lcov? [closed]

10 [ + - ][ + - ]: 2 : Conf::~Conf() {} 11 : : 12 : : 13 : 2 : Conf::Conf( std::string filename, ...
1
vote
2answers
80 views

PHP_CodeCoverage_Filter::getInstance() Error running phpunit

I have installed phpunit in my ubuntu 11.10 having php version 5.2.14. But when I run my test module it is throwing error, PHP Fatal error: Call to undefined method ...
5
votes
2answers
53 views

How to test statements which depends on specific PHP version with PHPUnit?

I have a construct like this: class Foo { public function doFoo($value = '') { if (function_exists('foo')) { return foo($value); } // if php ...
0
votes
1answer
57 views

Spring ApplicationContext loading in cobertura-maven-plugin tests

I'm using cobertura maven plugin to produce report about test code coverage of my spring-based application. My unit tests configures as: @RunWith(SpringJUnit4ClassRunner.class) ...
2
votes
0answers
93 views

EMMA [MAIN_METHOD_NOT_FOUND] in Java 7

I have switched to the newest JDK 7 and I having a problem of running of emma code coverage using ant. It throws the following error: emma: [emmajava] EMMA: no coverage data collected at runtime ...
1
vote
1answer
48 views

Identify and count lines of Java code in JSPs to help drive unit testing

I'm trying to increase unit testing for a large code base that several different teams actively work on. Much of the code was inherited, and none of it had unit tests to begin with. Additionally, it ...
2
votes
0answers
47 views

Finding code coverage in visual studio 2012 when Test and source code are in different solutions

I have source code and unit tests in two different solutions. The test project refers to the source code binaries. How can find the code coverage? If I select "Analyze code coverage" Menu under "Test" ...
2
votes
2answers
88 views

IntelliJ 12 code coverage not working in editor for GWT Projects

I'm trying IntelliJ 12, and I can't manage to get the line colored (red, green, yellow) in the editors after running the tests with coverage. Did anybody noticed the problem or it's just me not being ...
0
votes
1answer
45 views

Code Coverage Tool That Supports Annotation of JUnit Tests To Specify Which Method The UnitTest Covers

I'm looking for something like PHPUnit's "Specifying Covered Methods" for Java. That means a code coverage tool that comes with annotations for my JUnit tests so that I can specify which method is ...
2
votes
0answers
71 views

Simplecov coverage report seems to miss certain lines

Just after some clarification on how simplecov determines if a line has been exercised by a test. I have the following method: def over? end_at < Time.zone.now end in which end_at is an ...
5
votes
1answer
36 views

Exclude base directory from PHPUnit Code Coverage

How do I exclude the base directories from PHPUnit's Code Coverage? This is my phpunit.xml <?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="include.php" ...
0
votes
1answer
91 views

Boost C++ Unit Testing Code Coverage TeamCity

Please excuse what may appear to be a novice question. I have searched on the net for awhile without results. Is it possible to get code coverage on TeamCity using the Boost C++ Unit testing ...
1
vote
1answer
191 views

Visual Studio 2012 Code Coverage

We have very complex web based product including solid number of web services etc. I'm trying to collect code coverage for all assemblies in our product using VS 2012 command line utility ...
-1
votes
1answer
28 views

Sonar Component view and cobertura code coverage report view differ

When I look at my Sonar Components view I see a lot of classes with code coverage. However, when I click the unit test code coverage percentile to retrieve the view of packages from which the ...
0
votes
0answers
16 views

Is there a possibility to Build and Run a Mac target using xcode command line tool

I am trying to build and run a Mac application's target using Xcode command line tool. I know triggering a target of iPhone app is possible via iOS simulator. But is it possible to trigger a Mac ...
4
votes
1answer
51 views

Android External Api Coverage is Not coming

I have been trying from past 1 month for deducing the Code coverage report of my Android Project which includes External Jars.(I am running on ADT20). Whenever I run ant emma debug install test ...
1
vote
2answers
76 views

Linux Kernel Code Coverage - GCOV

I'm trying to use some test scenarios from Linux test Project and get the Kernel source code coverage. I'm using GCOV/LCOV to do so. here are the things I have so far: GCOV flags in the build ...
0
votes
0answers
41 views

Any coverage tool allows to ignore getters , setter, equals and hashcode?

We are currently using Cobertura but i can't figure out a way to exclude those methods. I tried Emma and clover as well which i couldn't find any way to do as well. Please , spare your "You should ...
1
vote
2answers
53 views

PHPUnit Code Coverage of abstract class implementing an interface

I'm currently working on Bitcoin Payment Bundle for Symfony2. You can view it on my github. It is not (yet, I hope) fully test-driven developed but I try to make it as test-covered as possible. ...
0
votes
1answer
36 views

CodeCoverage with PHPunit not generating

PHPunit 3.7.1 PHP 5.3.14 Windows 7 Using cmd I "cd" into the dir where phpunit.xml lives and run phpunit -c phpunit.xml but that dosen't generate any code coverage. phpunit.xml: <phpunit ...
0
votes
1answer
38 views

pytest and coverage combination does not work

I installed plugin for pytest from here:http://pypi.python.org/pypi/pytest-cov. Then I have a simple test code: pytest.py: class TestNumbers: def test_int_float(self): assert 1 == 1.0 ...
2
votes
1answer
79 views

How generate Cobertura format xml files using gcovr for iOS?

I am generating code coverage data files (.gdca and .gcno) on an iOS project running on Xcode 4.5 using Apple LLVM Compiler 4.1. Files are being generated under ...
5
votes
2answers
219 views

Code coverage tool for Visual Studio TDD Project

My code is produced via Test Driven Development. My tools are Visual Studio 2010 express, Google Test, C++98 and the latest version of boost. I write my own Mock and am not using Google Mock. What ...
0
votes
1answer
26 views

Code Coverage tool for Html5

Is there a code coverage tool that can be used for Html5? I came across a tool for Javascript (JSCoverage) but i dont see any reference to if it can be used for Html5? I see another tool called ...
0
votes
0answers
30 views

Code Coverage using Visual Studio 2010 using VSTools

I wanted to use Code Coverage using Visual Studio 2010 ultimate edition. My requirement is to have only vsinstr.exe and VSPerfCmd.exe available as part of VS tools. I do not want to have ...
2
votes
2answers
75 views

How do I exclude service references from code coverage using the runsettings file in Visual Studio 2012?

I'm using a custom runsettings file to control what projects are inspected for code coverage. I used the default template provided by Microsoft and have so far been able to exclude the items I want ...
1
vote
2answers
56 views

Unit test and Code coverage of ant build scripts

In our development environment We have more an more build scripts for ant to perform the build tasks for several different build jobs. These build scripts becomes sometimes large and does a lot of ...
1
vote
0answers
11 views

simple_cov: how to include tests of engine to the report?

Our rails application is using an engine and build upon customer projects. The engine itself is not executable as a standalone program. Using simple_cov works just fine for the customer projects. ...
1
vote
1answer
52 views

Is there any way to filter the coverage report in nose?

I'm using django-nose and it does generate a huge coverage report. I would like to filter its output, if possible. Here is an example of the output: (venv) ...
0
votes
0answers
20 views

codecoverage tools : JNI functions

I am exploring one code-coverage tool. But one doubt came to me. What if my product is written in java and c++ both. If I am using different tools for java code-coverage and c++ code-coverage, then ...
2
votes
2answers
103 views

Generating android code coverage though changes in build.xml and ant.properties

I have been trying to generate android code coverage for my android test project which tests a android project which includes a external jar. When I run command ant emma install debug test it shows ...
0
votes
1answer
84 views

Generating an elf file from cpp using arm-none-eabi-gcc

I want to do code coverage on c++ source code on an embedded target. Basic idea is, generate an elf along with -frofile-arcs -ftest-coverage turned on using gcc. Download it onto an ARM device and ...
0
votes
0answers
16 views

EclEmma 'Types' counter in test coverage result property?

I am using EclEmma for code coverage checking of a maven project. After coverage checking, found that result property show coverage of different counter, like line, instruction, method, branch, types ...

1 2 3 4 5 22
15 30 50 per page