1) when I develop something very new to me and learn as I go. I build tests as guardrails, then move along them, fix code, fix tests, fix my assumptions. Usually it lets me move faster and be more confident about what I'm doing.
2) there's a bug reported. I write a test that reproduces the bug first, and iterate on a fix. Helps to go fast immensely.
All other cases, I have the same feelings as Thorsten a lot of the time.
1) when I develop something very new to me and learn as I go. I build tests as guardrails, then move along them, fix code, fix tests, fix my assumptions. Usually it lets me move faster and be more confident about what I'm doing.
2) there's a bug reported. I write a test that reproduces the bug first, and iterate on a fix. Helps to go fast immensely.
All other cases, I have the same feelings as Thorsten a lot of the time.