News for hackers. Stuff that matters.
Re:Differential Coverage for Debugging by ossusermivami on Saturday April 26, 2025 @04:32AM (#43801871)
what about just doing a git diff ? that would see the method was not called before?
Re:Differential Coverage for Debugging by Jtsummers on Saturday April 26, 2025 @01:04PM (#43805277)
If it were a longstanding bug versus one just created for this exercise a git diff may not help much. Imagine you've found some edge case in your code that just hadn't been properly exercised before. It could have been there for years, now how do you isolate the erroring section? This technique (or the one I mentioned in my other comment which is very similar but uses more data) can help isolate the problem section.

git diffs can definitely help with newer bugs or if you can show that it's a regression (didn't error before commit 1234abcd but did after).

Re:Differential Coverage for Debugging by dllthomas on Saturday May 03, 2025 @08:10PM (#43883389)
"Wait, what did I change that impacted that test?"

An intersection between code coverage and a git diff once answered that handily for me.