When fixing a bug, I write a test that reproduces the bug first


When fixing a bug, I write a test that reproduces the bug first.

Benefits:
✅I don't have to repeatedly configure the app to reproduce the bug while trying to fix it

✅If the test fails, I know I'm not done

✅The test documents a handled edge case

✅The bug can't happen again

View original on X