© Bala Paranj 2017

Bala Paranj, Test Driven Development in Ruby, 10.1007/978-1-4842-2638-4_3

3. Techniques in TDD

Bala Paranj

(1)Atlanta, Georgia, USA

This chapter will cover three approaches to making a test work cleanly: Obvious Implementation, Fake It Till You Make It, and Triangulation. We will also discuss the use of the Transformation Priority Premise and the Reduction process when coding the solution to a given problem. We will revisit solution domain analysis to gain a deeper understanding of the problem-solving process.

Obvious Implementation

In Obvious Implementation, we type in real implementation if it is obvious and can quickly make the test pass. This is what we did in the calculator addition implementation by adding the two numbers ...

Get Test Driven Development in Ruby: A Practical Introduction to TDD Using Problem and Solution Domain Analysis now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.