4 ms·
I am currently in a project where we do not use TDD, even remotely, but we do have almost 100% coverage, since we need it for certification purposes. These tes
by sandos 9y ago
I am currently in a project where we do not use TDD, even remotely, but we do have almost 100% coverage, since we need it for certification purposes.
These tests are fairly easy to write, actually, with a test framework that helps mock everything automatically.
Then we have some internal tools written that makes these tests worth a lot less, we produce a lot of the test data and then just record the outputs as "correct". We have no real idea if they are correct, but at least the tests as they are now works as regression tests. This is what happens when you realize you need unit tests for tens of thousands of line of code in a few weeks' time, instead of writing the tests when you write the code.
There are of course testing on higher levels for this industrial system, multiple levels even and I have to say that the unit tests are fairly useless in comparison.