Questions tagged [test-coverage]
The test-coverage tag has no summary.
78 questions
0 votes
4 answers
252 views
Why is a test coverage type called "code coverage"?
Test coverage is a pretty straightforward term which doesn't need any explanation: how much is something "covered" by tests. Similarly you would use for example snow coverage, to say how ...
-1 votes
3 answers
515 views
Connection between code coverage and defects per KLOC
Most of the articles I read state that the average number of defects per KLOC is 10-15 (most of the data seems to come from Microsoft). How does that number correlate with code coverage? If my project ...
0 votes
3 answers
296 views
Test driven reduction of technical debt
Suppose you have been put in charge of an already existing project. As you are starting to familiarize yourself with the repository, you notice a few technical debt issues (insufficient test coverage, ...
0 votes
0 answers
79 views
Unit test coverage and abundant glue code [duplicate]
How do I solve this riddle of contradicting "good practices" to properly cover my app with unit-tests? These are principles I found about writing unit-tests: Pyramid of testing says unit-...
2 votes
1 answer
460 views
How to evaluate the impact of change for a single line of code or a variable?
During unit testing it is possible to estimate the code coverage to see which share of the code base is covered by the tests. For one part (the simple calculatable one) of a risk estimation we need to ...
-4 votes
1 answer
1k views
Is it possible to derive a test suite to achieve 100% path coverage? [closed]
Here is an example with the function: Examining this I believe that it is possible to achieve 100% path coverage. My understanding of path coverage is that you need to design test cases such that ...
4 votes
4 answers
636 views
How to comprehensively test software that doesn't play well with testing?
I'm currently working in a project that aims to implement automatic testing of a software package. You can imagine this software is a bit like Excel in that it has a workspace that contains all the ...
8 votes
7 answers
3k views
Rerun unit tests affected by change [closed]
Let's say we have a code base covered with big enough amount of unit tests. We make small change to the code and want to check if tests are still passing. Wouldn't it be great to be able to rerun just ...