News for hackers. Stuff that matters.
Re:Ask HN: Do you write unit tests at your startup? by CoryG89 on Sunday May 26, 2013 @06:30AM (#5770731)
I'd think it's always a good idea, no one minds when there are easy to run unit tests included in the open source project that they just downloaded. However, depending on time restraints, timing, financial concerns, scale, dealing with critical systems, etc, it may or may not be better to push something out without having any formal tests. I think some form of formal testing should be pursued in general.
Re:Ask HN: Do you write unit tests at your startup? by MojoJolo on Sunday May 26, 2013 @06:44AM (#5770758)
The startup company I'm working on writes unit test. But in my own personal projects, as much as I know that it's a good practice, I don't. I just don't seem to like unit tests. I also want to finish the features I like first and then just test it in real use. I do functional tests, but not unit test.
Re:Ask HN: Do you write unit tests at your startup? by adrianhoward on Sunday May 26, 2013 @03:54AM (#5770397)
Depends what you mean by "unit tests".

I tend to test drive the vast majority of my code - prototypes and all. So I end up with a unit-ish test suite.

I rarely write tests post-coding for initial prototype work.

Re:Ask HN: Do you write unit tests at your startup? by jwdunne on Sunday May 26, 2013 @04:21AM (#5770462)
I think it would have been better to make my question more general and ask about automated testing rather than unit testing specifically. I can still change it if you're happy to modify your answer?

Thanks for your answer :)

Re:Ask HN: Do you write unit tests at your startup? by sachin0235 on Sunday May 26, 2013 @09:01AM (#5770977)
unit test are always good and specially for startup's because they come handy to rescue when the original developer of the code had left you and a defect is raised. but as CoryG said there are always constraints with startups which stop them from doing that.
Re:Ask HN: Do you write unit tests at your startup? by nXqd on Sunday May 26, 2013 @05:01AM (#5770547)
this depends on your coding style. If you are used to TDD, so most of the test will be written.