Live data from Hacker News

Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?

news.ycombinator.com

1–10 of 41 posts

Re: Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?

#2
I've admitted on a few occasions that I've never written a unit test for anything. This is something I keep meaning to change, if only I could find the time. For the time being, I can still keep the code dependencies and side-effects in my head so it has yet to cause any serious issues.

I still slap my own hand, though.

Re: Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?

#3
post #2

I've admitted on a few occasions that I've never written a unit test for anything. This is something I keep meaning to change, if only I could find the time. For the time being, I can still keep the code dependencies and side-effects in my head so it has yet to cause any serious issues. I still slap my own hand, though.

Too busy building stuff ;)

Re: Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?

#4
At Plurk.com we use automated testing, but we don't develop by the TDD principle or do unit testing - as it's really hard to do with lots of code and lots of diversity (e.g. MySQL, JavaScript, Python, different layers of caching, Mako templates, Erlang etc.). We test the core functionality and cover things that 80% of users would use. This has worked ok so far without too many bugs - even thought we deploy new versions each day.

Re: Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?

#5
I use (automated) unit tests on anything that is going to be re-used (library code), but all the 'one off' stuff (mostly web related) is unit-test free.

I don't think that's optimal, but that's the way it is, and due to time constraints a major refactoring of all the code I have running is not on my to-do list anytime soon.

Re: Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?

#7
My first ever useful website (http://www.newmetalarmy.com) had only a few unit tests and it's a real fucking pain to change one year after launch without breaking anything.

Now on my next site (http://www.beepmystuff.com) I've got many unit tests and I'm much more confident when I make large changes.

The two site share a lot of code so the first is benefiting from the second getting a bit on TLC.

Re: Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?

#8
post #6

I upvoted the first option then realized I needed to upvote all of them. I have and will continue to confirm to each as the situation calls and allows.

Which situations do you think call for "no automated tests"?

Re: Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?

#9
post #8
post #6

I upvoted the first option then realized I needed to upvote all of them. I have and will continue to confirm to each as the situation calls and allows.

Which situations do you think call for "no automated tests"?

The quick and dirty jobs that we all do every now and then.
Post reply on HN