3 ms·
> for every method / control flow ported, add tests that target the newly added code, validating it does the same as the old code Nice, and as a bonus you end
by mooreds 2y ago
> for every method / control flow ported, add tests that target the newly added code, validating it does the same as the old code
Nice, and as a bonus you end up with a well tested system. Can't speak highly enough of data driven testing for this kind of system. Gives you such confidence.
> When you notice an opportunity to refactor, create a bug for it.
Did you have success in getting time to revisit all these bugs? Did you get pressure to fix them along the way (in either codebase)?
- barrkel 2y agoI think data driven tests are underused by engineers generally. One advantage that shines in a porting scenario is that they can be language agnostic. There was pressure from a reviewer in one area where the code could obviously be improved and I pushed back fairly hard in principle, but this was our first big project together and we were building trust, so I compromised in some leaf functions that presented the same API.