COMP 4004 Study Guide - Comprehensive Final Exam Guide - Test Cricket, User Story, Formal Specification
Document Summary
If tdd is dead how do you propose dealing with these problem: over-engineering: if you think uml diagrams is going to be an alternative, watch out. Should only do what you need to do now but e(cid:454)pe(cid:272)t (cid:272)ha(cid:374)ge later. Instead of hard wiring everything, build test objects: meszaros says as soon as you are into creating test objects, need to decide how far you go. All these are non-trivial and can get complicated with trade offs. Is good in sense it shows that your checking all values are being checked but below have no idea if everything is being checked below. And not necessarily more reusable as you may have some case you just want to check the discount. Introduce custom assert: nothing changes, just moved somewhere else so the test is better looking. Just refactoring style which is not part of fowlers book: one code smell is putting test logic in production code.