Skip to main content

Questions tagged [test-coverage]

0 votes
4 answers
253 views

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 ...
Marco Lackovic's user avatar
2 votes
3 answers
565 views

I have a Java project where a coverage analysis tool is being used (SonarQube). It rightly declared that code similar to this was a potential performance issue (Encode.forJava would still be called ...
Tibrogargan's user avatar
-1 votes
3 answers
517 views

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 ...
ihi's user avatar
  • 9
-1 votes
3 answers
138 views

About tests: I have the following view on nomenclature: Unit tests are the kind of testes where you have a function ExtractBacon, where there is a function with an entry parameter Pig and a return of ...
sergiol's user avatar
  • 157
0 votes
3 answers
296 views

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, ...
EdG's user avatar
  • 11
2 votes
1 answer
273 views

I'm sorry if the title is confusing, I don't know if what I am describing has a proper name so let me describe... I have an algorithm which contains quite a bit of nested if/else if/else logic for ...
Mr. Boy's user avatar
  • 261
0 votes
0 answers
79 views

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-...
Gherman's user avatar
  • 945
0 votes
1 answer
76 views

I am writing tests for an algorithm that is built up of several consecutive stages. Each such stage has its own set of unit tests. I want to check that the whole algorithm performs as expected, but am ...
krezno's user avatar
  • 167
2 votes
1 answer
460 views

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 ...
Joe's user avatar
  • 129
1 vote
5 answers
381 views

Note: I'm asking about the strategy behind unit / integration / end-to-end tests, not about classifying tests as one or the other. More so in the past than present, it was expensive to write and run ...
Andrew Cheong's user avatar
-4 votes
1 answer
1k views

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 ...
Sri's user avatar
  • 13
1 vote
2 answers
134 views

per the title how important is the data in assessing code coverage? As background, let's say that you're given 20% of the entire dataset to help trace the different pathways each row of data goes ...
user2105555's user avatar
4 votes
4 answers
636 views

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 ...
gibson's user avatar
  • 167
38 votes
11 answers
14k views

I am adding unit tests to some existing code which initially was not tested at all. I have set up my CI system to fail builds where the code coverage percentage is reduced compared to previous build -...
Jonathan Gross's user avatar
8 votes
7 answers
3k views

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 ...
Andrew Lanin's user avatar

15 30 50 per page
1
2 3 4 5 6