re: When do you write your tests? VIEW POST


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

Code of Conduct Report abuse