DEV Community


Discussion on: When do you write your tests?

alinp25 profile image
Alin Pisica

It depends on what I'm working on. If I have to do something quick and I already know all the possible cases that could go wrong, I either write them at the end or not at all. Otherwise:
1. Write Test
2. Test Fails
3. Write Code
4. Test Passes
5. Go To 1