3 ms·
> If they [...] left a good comprehensive set of unit tests and documentation then you could do that - but they didn't. Then you can start by writing the test
by mike_hock 4y ago
> If they [...] left a good comprehensive set of unit tests and documentation then you could do that - but they didn't.
Then you can start by writing the tests. That forces you to dig until you actually understand what's going on.
- BurningFrog 4y agoThis can be a lot of fun! My "trick" is to write black box test without understanding the code. Like this: 1. Send in some data 2. Observe what data comes out. 3. Make a test asserting that! 4. Go back to 1.