▲ | nyrikki 5 days ago | ||||||||||||||||
It isn't coupling low level implementation details, it is writing tests based on input and output of the unit under test. The expected output from a unit, given an input is not an implementation detail, unless you have some very different definition of implementation detail than I. Testing the unit under test produces the expected outputs from a set of inputs implies nothing about implementation details at all. It is also a concept older than dirt: https://www.researchgate.net/publication/221329933_Iterative... | |||||||||||||||||
▲ | MoreQARespect 4 days ago | parent [-] | ||||||||||||||||
If the "unit under test" is low level then thats coupling low level implementation details to the test. If you're vague about what constitutes a "unit" that means youre probably not thinking about this problem. | |||||||||||||||||
|