When is a good time to write tests? I’ve never found it

Reply to this note

Please Login to reply.

Discussion

I think it depends on the situation. I find myself writing tests when I begin to fear how different inputs will be processed, especially in combination.

You should only write tests when that part of the codebase has real users relying on it not breaking, real contributors who might inadvertantly break it, and everyone involved has reason to believe that further experimentation is pointless.