Comment by revskill
3 years ago
People normally write tests for just the sake of correctness. I treat unit test as real debugging environment, it's debugging experience that makes writing test code enjoyful as i see.
3 years ago
People normally write tests for just the sake of correctness. I treat unit test as real debugging environment, it's debugging experience that makes writing test code enjoyful as i see.
Same here. I get lovely little dopamine hits from passing tests, enhanced by pytest-sugar [1] giving everything a little green check mark.
[1] https://github.com/Teemu/pytest-sugar
Debugging in this case, i mean, i can inspect all program state, variables step by step, and i don't care much about "result" or "output".
Sorry, yes, I should have specified that that result part is on top of the dopamine from the debugging phase.