2 ms·
There is some value in unit tests for plumbing. Something I see a lot is a set of values being transformed across several domains, losing data at each step. A v
by jniedrauer 6y ago
There is some value in unit tests for plumbing. Something I see a lot is a set of values being transformed across several domains, losing data at each step. A very simple test that inputs values on one end of the pipe, and checks the values on the other end of the pipe, makes it very easy to be sure that you didn't drop something.
- ozim 6y agoIf you transform values, then it has logic, so it does not fit in my definition of simple plumbing. If you check that integer value AgencyId is passed to another object as integer value with the same name of AgencyId that is basic plumbing that should not be covered by unit test. Of course someone might forget to wire that up somewhere, but it is not something I would say writing test and then maintaining it costs more than just fixing it when you find it and once it is fixed there is no real reason to keep regression on it.