News for hackers. Stuff that matters.
Re:Testing code is simple by waterlion on Thursday September 26, 2013 @09:34AM (#6450568)
Hm. This is possibly the most simplistic conceivable form of unit testing. Granted, lots of testing takes this form but it's only the start.
Re:Testing code is simple by vpeters25 on Thursday September 26, 2013 @10:13AM (#6450858)
My experience is that a simple "it works" test covers most of the potential bugs in the test subject, so I just write {method name}_itWorks and just call the method inside asserting whatever the method was supposed to do.

I only write more tests if there are important business rules (new employees should be created with "Pending" status), or to cover edge cases uncovered by QA.