News for hackers. Stuff that matters.
Re:Ask HN: Do you write automated tests for your side projects? by stevekemp on Thursday November 24, 2016 @12:05AM (#13028265)
Always.

A "side project" is a project, which by definition, doesn't have my full attention. I need to have confidence that I can tweak it and re-deploy it when I have a moment of inspiration or a bug-report.

The main way to be confident that you haven't broken things? Adding test-cases. I started out writing unit-tests for the APIs I present and consume, then later added more tests which run from "Signup, Use the service, Delete the account".

In all honesty I don't run the full suite very often, but when I do I'm glad I took the time to write it.

There are no comments on this comment yet.