News for hackers. Stuff that matters.
Re:Poll: Do you test your code? by fragsworth on Wednesday March 14, 2012 @09:13PM (#3706275)
That's the point I was trying to make. The main benefit comes from eliminating the "run/debug" part of the "code/run/debug" loop. It then just becomes "code/test" where "test" takes all of a couple seconds each time.
Re:Poll: Do you test your code? by alextgordon on Wednesday March 14, 2012 @10:44PM (#3706501)
But if you don't run it yourself, how do you know it's working? All you know is that the tests pass.

Tests can easily do more harm than good if you let them give you a false sense of security.

Re:Poll: Do you test your code? by tbsdy on Thursday March 15, 2012 @02:21AM (#3707141)
But surely if you have written a unit of code, you should at least know a. What valid input the code should have, b. what output the code should return, and c. What you want he code to do! If you know these things, then wouldn't it be easy enough to write tests for at least these conditions?
Re:Poll: Do you test your code? by gbog on Thursday March 15, 2012 @10:26AM (#3708566)
A couple of seconds is too long. I run a small test suite in a couple of microsecs every time I save a file, and save my file at every change. When a task is done I run all the tests.