News for hackers. Stuff that matters.
Re:Kent Beck: “I get paid for code that works, not for tests... by goldenkek on Thursday December 08, 2016 @05:03PM (#13134705)
checking for an insert into the database in the most general fashion is okay. checking for the exact dynamic data?? you are basically copying your code.
Re:Kent Beck: “I get paid for code that works, not for tests... by awinder on Thursday December 08, 2016 @05:55PM (#13135080)
I'm just saying I can cut test time dramatically by not testing that X db actually can do it's job in expected ways, and those tests can run sans networking and unexpected situations won't cause false negatives. Both things are fine and they go very well together but each allows you to do different things
Re:Kent Beck: “I get paid for code that works, not for tests... by goldenkek on Thursday December 08, 2016 @06:15PM (#13135224)
exact tests on implementation at the "db was updated properly" category are usually classified as integration tests. theres nothing wrong with those. but one shouldnt test specificity of internal method code for small units.