3 ms·
Tests are not a replacement for comments or documentation. Tests check that A() returns x but don't explain what is A, x and why it should return it.
by codedokode 5y ago
Tests are not a replacement for comments or documentation. Tests check that A() returns x but don't explain what is A, x and why it should return it.
- treis 5y agoThat goes in the test name. You'll have something like Feature A "It should return X in [some edge case]" That's where any link to a use case should be.