Questions tagged [test-coverage]

"Test coverage" is used both as a synonym for [code-coverage] and to mean all measures of the extent of testing of a program including both [code-coverage] and [function-coverage].

"Test coverage" is used both as a synonym for and to mean all measures of the extent of testing of a program including both and .

In the latter sense, test coverage measures the amount of testing performed by a set of tests. Wherever we can count things and can tell whether or not each of those things has been tested by some test, then we can measure coverage, known as test coverage.

More Info

Both of the above articles discuss code coverage, not test coverage in the broader sense.

377 questions
0
votes
1 answer

Jacoco 0.8.2 and Android Gradle plugin 3.2.0 test coverage

I just tracked down an issue I'm having with partial coverage reports due to Android Gradle plugin 3.2.0 Jacoco is only generating coverage reports for less than 10% of my project. If I revert back to 3.1.4, it behaves as expected. Is there any…
Tyler
  • 19,113
  • 19
  • 94
  • 151
0
votes
2 answers

Node.js test coverage

Could anyone, please, recommend simple test coverage tool for Node.js without using Mocha because I use simple functions from assert module of Node in my own test framework.
Guseyn Ismayylov
  • 367
  • 5
  • 16
0
votes
1 answer

Can OpenClover work along with JDO enhancment?

We have a gradle project that uses jdo enhancement. Basically: The enhancer post-processes the bytecode generated by your Java compiler, adding the necessary fields and methods to implement the required persistence features. When I try to add test…
Avinav
  • 542
  • 5
  • 7
0
votes
1 answer

Is it possible to make pytest report if a function is never called directly in a test?

Example def main(p): if foo_a(p): return False return p**2 def foo_a(p): return p % 11 == 0 Now you can get 100% test coverage by import unittest from script import main class Foobar(unittest.TestCase): def…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
0
votes
0 answers

Unit tests in Swift. Is it enough to cover 100%?

My question is, is it enough to write tests while Xcode will show you 100% coverage and writing tests only for methods what Xcode shows you in coverage calculation screen? Or I have to write more tests than it shows in the coverage section? Please…
J. Doe
  • 521
  • 4
  • 15
0
votes
2 answers

TeamCity - exclude Entity Framework classes from .NET project test coverage

I am using TeamCity as CI tool. I want to exclude all the Entity Framework generated models. I've been trying different syntax and options for a while and nothing seems to do the trick. I read the documentation, read all the question on the topic I…
Kris Bonev
  • 552
  • 1
  • 3
  • 16
0
votes
1 answer

Specman- How can I implement a sequential coverage?

I have an event named tx_intrpt_e. I want to create the following coverage: On tx_intrpt_e wait few cycles cross uarttx_dma_sreq==1. Where uarttx_dma_sreq is a port of the interface.
Sara p
  • 31
  • 6
0
votes
0 answers

How can we get the coverage of automation scripts in terms of HTML elements on UI being accessed. Is there any tool available for this?

I have written the test automation scripts in selenium for a website. Along with this I have added JaCOCO scripts to get the code coverage of the application. Now, I want the coverage of the html elements on UI i.e. the list of elements (buttons,…
0
votes
1 answer

Test coverage showing some branches missing

I am running gradlew app:testCoverage on my project. Everything counts fine, except this case, I can't figure out what exactly are these 4 branches one of which is missing. I can see only 2 cases here - exception is null and exception is not null.
annaoomph
  • 552
  • 1
  • 4
  • 22
0
votes
1 answer

Running .\gradlew createDebugCoverageReport causes java.lang.UnsupportedClassVersionErrorUnsupported major.minor version 52.0

I went through all the questions on stack and other sites for following error, but I am still not able to resolve it. I also did Invalidate Cache and restarted Android Studio I am using JDK 1.8, my Java_HOME path is set to 1.8 and embedded JDK…
user8412632
0
votes
0 answers

Can other extensions (besides .py .pyc .pyo) be recognized as Python modules?

I have a few test files residing in test/ directory which has an __init__.py file. The test files are basically Python files but have the extension as .thpy (Python test files). Each of these tests internally use unittest. For code coverage…
Nikhil Hegde
  • 341
  • 1
  • 3
  • 15
0
votes
0 answers

Static C++ Api coverage tool

Given a set of public headers, and various test code that makes use of these headers, I need to generate a list of used/unused API calls. I am working with a platform that can not easily have traditional code coverage at runtime, but my…
user2180076
  • 121
  • 8
0
votes
1 answer

$ionicPopup.show buttons onTap function not getting coverage in Angular Jasmine Unit Test

When I call the outOfMvp() function in my unit test spec file, everything inside the function is getting coverage except for the onTap function. I was wondering how to get coverage in my unit test for the button's onTap function which is in a JSON…
0
votes
1 answer

Historical test coverage data for a given class/method

We are trying to pull historical test coverage data (more like weekly/mothly trend) for a given resource. At a project level we are able to fetch required data by using the API…
Coc
  • 437
  • 1
  • 3
  • 19
0
votes
1 answer

Passing Index Loop Vars To Objects in Ruby with TDD

I'm trying to get a very simple set of tests done in TDD and Ruby. The problem I'm having is in trying to pass a range of values from the test to the object being tested. The aim of the code is to guess the correct 'secret number' by sending the…