3 ms·
Rather than commenting it out, I suggest adding a --live-run flag to scripts and checking the output of --live-run=false (or omitted) before you run it "live."
by aqme28 4y ago
Rather than commenting it out, I suggest adding a --live-run flag to scripts and checking the output of --live-run=false (or omitted) before you run it "live."
- sdevonoes 4y agoBut then you have double the chances of introducing a bug for the specific scenario we are talking about: Before: there is chance there is a bug in my "delete" use case Now: what we have before plus the change that there is a bug in my "--live-run" flag
- aqme28 4y agoYou can make automated tests for your flag. You can’t make automated tests for your code comments.