2 ms·
So I write some code and a test, and of course the first time I run the code, the test is going to fail. So now the balance in our "Software test" account is n
by hibbelig 8y ago
So I write some code and a test, and of course the first time I run the code, the test is going to fail.
So now the balance in our "Software test" account is nonzero whereas it should be zero.
But audit requires us to record all bookings, so how do we explain these bogus bookings (both from the erroneous code that made the mistake in the first place, and from the manual adjustment later that fixes the mistake for the next test run)?
- z3t4 8y agoYou can have many types of tests. First you have assertions and unit tests with mocks/injections that runs at compile time together with the type checker and other low level tests. Then you have the integration tests that makes sure your code works together with third parties and other API's. Those tests might seem unnecessary when you already have unit tests, but it's very nice to know if some third party have made breaking changes and that your software have stopped working because of it.