|
|
|
|
|
by simplesort
405 days ago
|
|
I thought it was interesting - not revolutionary but updated my thinking a bit. Writing a failing test that reproduces a bug is something I learned pretty early on. But I never consciously thought about and approached the test as a way to debug. I thought about it more of a TDD way - first write tests, then go off and debug/code until the test is green. Also practically, let's fill the gap in coverage and make sure this thing never happens again, especially if I had to deal with it on the weekend. What was interesting to me about this was actively approaching the test as a way of debugging, designing it to give you useful information and using the test in conjunction with debugger |
|
I'm curious, if you're using TDD weren't you already doing this? A test that doesn't give you useful information is not a useful test.