News for hackers. Stuff that matters.
Re:Kent Beck: “I get paid for code that works, not for tests... by wjnc on Thursday December 08, 2016 @09:39AM (#13130517)
Do you mean test explicitly and fail graciously? So even test over false inputs, but check that the code fails with the right exit?
Re:Kent Beck: “I get paid for code that works, not for tests... by emodendroket on Thursday December 08, 2016 @09:53AM (#13130598)
I mean if you have a method whose definition is literally just "return 'abc'" and then you have a test assert that that method returns 'abc', knock it off.
Re:Kent Beck: “I get paid for code that works, not for tests... by jdmichal on Thursday December 08, 2016 @10:49AM (#13131010)
I call those types of test, "testing that the compiler works." Not really something you should be testing! It also applies to testing code that is just a wrapper around third-party libraries.