Live data from Hacker News

Poll: Do you test your code?

news.ycombinator.com

41–50 of 351 posts

Re: Poll: Do you test your code?

#43

I used to get code back from developers EACH AND EVERY TIME with massive bugs like: unable to register, unable to login, unable to add content. I wrongly assumed that they at least ran through and checked for any bugs they introduced before sending me the new code. So each and every time I got code back I had to go through manually and check it, sign in, log out, register, add content, delete content, edit content, a…

I think https://stillalive.com/ will do what you want.

Their landing page is a little weak but I dig their UI for setting up tests.

Re: Poll: Do you test your code?

#44
Currently working a webapp with a legacy(2002ish) java code base with a fair amount of testing but it's not even close to full coverage. JMockit has gone a long ways to towards making it easier to expand the test coverage but it's difficult to find time to make significant impact.

Re: Poll: Do you test your code?

#45
Another interesting question: how often do your tests run? Most folks probably run unit tests with continuous integration but what about functional and performance driven tests?

Re: Poll: Do you test your code?

#47
Unit testing is the salvation of anything but the most trivial of projects.

Sometimes, it can be frustrating to have to stop and write a unit test before send out something for further review, but computers are more reliable testers than humans are.

Learn, use, and love unit testing, or face the consequences.

Re: Poll: Do you test your code?

#48

I don't believe anybody that says they test all functionality. Most? Sure. All? No way. Not in a non-trivial codebase. Article about the group that writes the space shuttle software, sort of relevant?: http://www.fastcompany.com/magazine/06/writestuff.html

The trouble is that the poll doesn't have a middle ground between "all functionality" and "a few critical things". A full run of our test suite literally takes months on a cluster of hundreds of CPUs (obviously, there are also faster versions of the tests which are run frequently). While I have a long list of additional test coverage that I would like to add, what we test is much closer to "all functionality" than it…

Would you be able to share what type of software it is? I'm curious what takes that long to run

Re: Poll: Do you test your code?

#49

I used to get code back from developers EACH AND EVERY TIME with massive bugs like: unable to register, unable to login, unable to add content. I wrongly assumed that they at least ran through and checked for any bugs they introduced before sending me the new code. So each and every time I got code back I had to go through manually and check it, sign in, log out, register, add content, delete content, edit content, a…

http://fakeapp.com
Post reply on HN