Tagged Questions

1
vote
1answer
20 views

Functional testing coverage Tool on apache and jboss

I'm looking for some tool which will provide me the code coverage of my functional tests (Not the unit testing code coverage ). To elaborate more, assume QA team executes their tests suites using ...
0
votes
1answer
42 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 ...
2
votes
3answers
285 views

What are my alternatives for test code coverage on Android?

I know Android's Ant tooling comes with built-in Emma code coverage, but Emma's reports look more and more dated and cannot be easily integrated into other coverage reports or even Sonar, basically ...
8
votes
16answers
620 views

How to interpret 'test every scenario you can think of'

I was recently tasked to, "Test every scenario you can think of and try to break the component" What might be sensible in 'everything' when the application is a website? NOTE: This particular site ...
4
votes
2answers
318 views

Code coverage / branch coverage recommended values

I'm using Cobertura to calculate code/branch coverage for a Java project with JUnit test cases. I know 100% coverage does not tell how good the code is, but at the moment it's 6%. Branch coverage is ...
19
votes
4answers
2k views

Is mutation testing useful in practice?

It exists the technology of mutation testing. It checks, if the tests are running even if you change the code. If not all is OK, if the tests are running they don't cover all eventualities. There is ...
1
vote
6answers
2k views

How to change the default output from a Maven 2 / Cobertura instrument goal?

when i instrument my classes using Maven 2 using the command mvn cobertura:instrument The output (the instrumented classes) are put in \target\generated-classes. Is there a way to change the ...
2
votes
3answers
3k views

How to instrument a multiproject Maven 2 with Cobertura?

My Maven 2 project consists of several sub-modules. It s structured containing and EJB, WAR and Jar sub modules.. Now i want to instrument the packaged EAR that contains all submodules as mentioned. ...
0
votes
1answer
553 views

How to package Maven 2 generated-classes by Cobertura?

i have a Maven 2 project setup which nicely packages a war file using a pom.xml now i want to introduce Cobertura to that. I can succesfully instrument the classes but when i want to package the ...
1
vote
0answers
51 views

modified condition /Decision coverage analysis tool in java

Are there any opensource tools for modified condition /Decision coverage analysis in java. I have looked at coberta and it seems it only provides conditional coverage. I am interested in performing ...
7
votes
3answers
2k views

Java: measure code coverage for remote scripting tests

We have an application which is deployed on JBoss 5.1, JDK 1.6. We also have scripts written in PowerShell for testing. These scripts access the application using a web-service. I would like to check ...
0
votes
2answers
51 views

integration tests vs test coverage

My company has a rule to reach 75% test coverage, either by unit or by integration tests. due to the complexity of the overall system, developers tend to write integration tests (e.g. using selenium ...
1
vote
0answers
59 views

Detailed guide on using gcov with CMake/CDash?

I'm using CMake with my project and set up a cdash server for continuous/nightly building. Everything works well and by setting up a crontab, we have hourly/nightly build/test results uploaded to our ...
2
votes
2answers
84 views

How to test code coverage for Rails ERB templates?

I'm just building a test suite for a legacy Rails app. The simplecov gem has been great for finding dark corners of the app which need test coverage (or which may be completely unused and OK to ...
7
votes
1answer
367 views

Is there still no solution for ignoring setter/getter (other trivial methods) with the cobertura-maven-plugin?

Did someone find a good solution to ignore trivial methods? Using some automated testing like Unitils is not really an option, since the code-coverage should not go up if only getters/setters are ...
16
votes
6answers
10k views

What is Code Coverage and how do YOU measure it?

What is Code Coverage and how do YOU measure it? I was asked this question regarding our automating testing code coverage. It seems to be that outside of automated tools it is more art than science. ...
0
votes
0answers
48 views

Ruby on Rails Development Code Coverage

First, are code coverage metrics for official Rails development publicly available? Their Travis CI page @ https://travis-ci.org/#!/rails/rails doesn't seem to have it. Second, we've been tasked with ...
1
vote
1answer
63 views

Method coverage in an android application without source code

Can someone give me an ide about method coverage in android apks without having the source code? I heard that there is an android specific version of emma project that can give method coverage ...
0
votes
1answer
336 views

NoClassDefFoundError with the EclEmma code coverage tool

I tried to use the EclEmma code coverage tool to check coverage of test cases, but got the following error: java.lang.NoClassDefFoundError: android/test/ActivityInstrumentationTestCase2 How can I ...
-1
votes
1answer
113 views

View method calls in android apk files runtime

Hi i need to do some coverage testing on android apk files. I do not have access to the source. Are there any such tools that will allow me to view the method calls in the apk file run-time? so that I ...
6
votes
1answer
349 views

Is branch coverage the same as decision coverage?

I'm learning software testing right now, and I found that there are a lot of coverage criterias out there. And something just confused me. Is branch coverage equals to decision coverage? wiki said ...
0
votes
1answer
215 views

generating branch coverage data for lcov

i'm trying to use lcov for code coverage metrics, but I cannot get branches coverage to work. Here's how i'm using it: g++ -ggdb3 --coverage src/read.c tests/test.cpp -o bin/test lcov ...
1
vote
1answer
73 views

R code coverage for the testthat package

Is there any tools to evaluate code coverage for R scripts using the testthat package? I found nothing by Google except a mention of the topic in the Future work section of an RJournal article.
0
votes
1answer
175 views

PHPUnit, Code Coverage, xdebug and html reports

Well, I have a problem trying to setup code coverage reports. First thing I had to do was to install xdebug, I did it, and it worked...Well, actually, instead of showing me the coverage of my test ...
1
vote
0answers
107 views

C1 or C2 coverage tool for ruby

Is there any tool for C1 or C2 code coverage for Ruby (1.9)? SimpleCov supports only C0, but maybe there is another tool. I'm aware that a similar question has been asked here, but it was a couple ...
1
vote
1answer
154 views

0% code coverage with PHPUnit

I'm running module tests with PHPUnit and want to get coverage reports on the tests. I've successfully been doing this in the past, but somehow i cannot get it working again and I have no idea why ...
9
votes
11answers
3k views

How to add test coverage to a private constructor?

This is the code: package com.XXX; public final class Foo { private Foo() { // intentionally empty } public static int bar() { return 1; } } This is the test: package com.XXX; ...
0
votes
1answer
194 views

Is there any free C test code coverage tool for Windows?

Please let me know if there are any free C test code coverage tool for Windows environment
3
votes
0answers
277 views

How can I exclude methods from EMMA reports?

Is it possible to exclude selected methods from EMMA code coverage reports? I dont want to have getters, setters, equals methods, etc. in my final EMMA reports. I know that it is impossible to ...
0
votes
4answers
259 views

How to get the best code coverage in Java?

Several tools exists that allow to calculate path coverage for a set of tests, but is there a tool (or an algorithm) that could suggest values to get the best path coverage with the smallest number of ...
9
votes
4answers
1k views

Coverage analysis for Functional Tests

In the project that I am working on, we have functional tests written over Selenium. The application undergoes functional changes with each feature release. Is there a tool / mechanism that we can ...
3
votes
1answer
301 views

Code coverage report incorrectly indicating 100% coverage of a controller

I'm running a series of PHPunit tests and have a controller that is reporting 100% coverage. In the coverage report however, only 5 of its 84 lines of code are marked "green" I'm wondering what ...
15
votes
3answers
10k views

How to use EMMA code coverage in android

Im new to EMMA, i dont know how to use this for android system. Can anyone please give a sample for using this with android. Thanks a lot.
5
votes
2answers
78 views

Are there tools for branch-level test coverage tracking for Pharo/Squeak?

I am looking for something that could visualize code coverage on the branch/statement level. My understanding is that the test coverage tool provide by the test runner in Pharo and Squeak only tell ...
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 ...
0
votes
1answer
111 views

Does we need to test private functions on CakePHP?

I thought private functions should never be tested and only the public interfaces should be. But then, using XDebug to see the coverage of my function i find out that it decreases as it takes into ...
1
vote
2answers
613 views

java.lang.RuntimeException: Stub! - Android Code Coverage?

I was using EclEmma coverage tool to test my code coverage. But whenever I run my test cases, It gives me the following error. Can you please tell me how can I solve this error.
0
votes
1answer
57 views

What does a high line coverage, but low block coverage indicate?

Using MS Test and the code coverage support I discovered something with 60% line coverage, but only 17% block coverage. How should I interpret this? (I'm a little fuzzy on blocks compared to lines, ...
3
votes
1answer
426 views

SimpleCov with multiple apps - or in short, how does Simplecov work?

I'm trying to setup SimpleCov to generate reports for 3 applications that share most of their code(models, controllers) from a local gem but the specs for the code that each app uses are inside each ...
4
votes
2answers
279 views

Measure Scala Code coverage in testcases in Eclipse

I am in a situation, where I have a number of ScalaTest written tests (JUnit compatible), and I want to measure how good codecoverage I get, when running the test. I don't want to use SBT directly, ...
1
vote
2answers
663 views

Hudson/Jenkins: Buckminster emma: How to exclude packages

I use Jenkins and Buckminster for rcp app for CI and this works like a charme. The only problem I have is that the buckminster emma task does the code coverage for ALL packages in the checked-out ...
2
votes
0answers
92 views

Is it possible to do code coverage of human QA actions in iOS?

We got a project from another team and a set of test cases that we are suppose to evaluate if they are good enough. I want to do a dry-run of all the test cases and check what is the coverage without ...
1
vote
1answer
249 views

Getting Python's coverage.py to gather coverage for the module that imports it?

I've been toying around with coverage.py, but can't seem to get it to gather coverage for the __main__ module. I'm on Windows, and like to hack up scripts using IDLE. The edit-hit-F5 cycle is really ...
12
votes
3answers
1k views

Reaching 100% Code Coverage with PHPUnit

I've been in the process of creating a test suite for a project, and while I realize getting 100% coverage isn't the metric one should strive to, there is a strange bit in the code coverage report to ...
0
votes
2answers
252 views

In any program doesn't 100% statement coverage imply 100 % branch coverage?

While solving MCQs for a practice test I came across this statement - "In any program 100% statement coverage implies 100 % branch coverage" and it is termed as incorrect. I think its a correct ...
1
vote
2answers
293 views

Which code coverage % should we target? [closed]

We are starting with code coverage and would like to know what would be a decent value for the team to start targetting. We would like to put this code coverage as a percentage in the DONE Criteria ...
3
votes
1answer
397 views

Basic block coverage - what's the precise definition?

Let's say I have this piece of C/C++ code: int c = 12; // Should I count this line as basic block? if (a != 0 && b > 10) { c += (a + b); } else { c += 1; } printf("%d", c); // ...
3
votes
1answer
98 views

Does coverage.py measure the function and class definitions?

I am trying to achieve a 100% coverage for a basic python module. I use Ned Batchelder's coverage.py module to test it. 1 class account(object): 2 def __init__(self, initial_balance=0): 3 ...
0
votes
1answer
103 views

PHPUnit code coverage shows code coverage of Unit tests?

I'm using Michael Romer's fantastic ZF-Boilerplate and have hit a snag when testing. When I view the code coverage reports, it only shows the code coverage for the actual unit tests, not for the code ...
1
vote
0answers
161 views

TestCocoon code coverage with shared library?

I'm using testcocoon to instrument a library I'm working on. The problem is once I build the library with testcocoon, generating csmes files(which is the way it should be), I cannot get the coverage ...

1 2
15 30 50 per page