|
|
|
|
|
by luhn
3280 days ago
|
|
>> if you were working on a big app and there was a bug, writing a failing test for that bug and then looking into the fix is very helpful.
> Well, first of all, that's not TDD. TDD is Test-Driven Development. In your scenario, you wrote the test after the code in question. In TDD, the whole point is to write the test before the code in question It's a regression test, which is definitely TDD. The code in question is the fix for the bug, the test verifies that the bug is fixed and will remain fixed. |
|