|
|
|
|
|
by bzbarsky
5286 days ago
|
|
The amount of test code and test data is proportional to the number of possible codepaths through your code. This is generally exponential in number of functions, modules, etc involved. For example, a function with N if statements that are not nested generally needs 2^N testcases to properly exercise it. So having 1000 times more tests than code may not mean that you have complete coverage at all. It depends on the structure of the tests and the code. |
|
(Not disagreeing, I just had to go through this process in my head when I thought about what you said in comparison to what they said.)