TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Do you write automated tests for your side projects?

5 pointsby teeknoover 8 years ago

8 comments

stevekempover 8 years ago
Always.<p>A &quot;side project&quot; is a project, which by definition, doesn&#x27;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.<p>The main way to be confident that you haven&#x27;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 &quot;Signup, Use the service, Delete the account&quot;.<p>In all honesty I don&#x27;t run the full suite very often, but when I do I&#x27;m glad I took the time to write it.
ajeet_dhaliwalover 8 years ago
This really depends on the size of the project and how many developers are involved for me. If it&#x27;s just me and there are no external users then I almost never write them due to priority. If there are external users and&#x2F;or at least two developers, then absolutely.<p>It&#x27;s a great sign people are writing automated tests for their side projects because based on my experience there are still many teams that aren&#x27;t bothering to do so for bigger production projects adequately. It&#x27;s one of those things everyone knows they should do and talk about it but the resources and priorities are almost never in place. The test results need to be visible by more than just the testers too.<p>I have a particular interest in test automation due to my involvement at Tesults (<a href="https:&#x2F;&#x2F;www.tesults.com" rel="nofollow">https:&#x2F;&#x2F;www.tesults.com</a>). This is a test results dashboard for teams of about 10-20 or more - it&#x27;s not designed for tiny teams or side projects but if you&#x27;re interested in trying it out for a small team send an email using the address on the site with the link to this page on HN and we can sort you out - only really worth it if you are doing continuous build&#x2F;integration too, overkill for one or two person teams.
ohgh1ieDover 8 years ago
Yes always, I hate it, that&#x27;s the worst part of every application, testing in general but it&#x27;s also the foundation for a good night sleep.
pesfandiarover 8 years ago
Depends on the size and use case of the project. If it&#x27;s only a small hobby project that myself and a few others use, writing automated tests instead of manual testing is overkill. If you have paying customers or have made an implicit promise to keep the service up and running, then automated tests make sense.
bjourneover 8 years ago
Yes, always. That way I can refactor much faster because I know the tests will catch me.
sherazover 8 years ago
Never. And then I change platforms, say from heroku to deis. It&#x27;s is about this time that I wish I at least had some end-to-end tests on the big things like signup, password reset, and profile editing.<p>Call it post-facto regret I guess.
brianwawokover 8 years ago
Some. Not full coverage ever. Partially depends on the language. Statically typed languages come with many free tests called type checking.
afarrellover 8 years ago
Always. If I&#x27;m trying to learn something new, I need to write automated tests to check my understanding or else I&#x27;ll end up getting lost.