Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) TDD

 

'Test Driven Development (TDD) is a software design technique' [1].

 

Here is an example of a set of rules to work following TDD [2](citing [3]):

 

  1. Write production code only to pass a failing unit test
  2. Write no more of a unit test than sufficient to fail (compilation failures are failures)
  3. Write no more production code than necessary to pass the one failing unit test

 

 

 

 

Notes to self

 

 

 

 

 

 

References

 

  1. Jeff Langr. Modern C++ Programming with Test-Driven Development. 2013. ISBN: 978-1-937785-48-2. Introduction chapter, page xiv: 'Test-Driven Development (TDD), a software design technique devised in the late 1990s, [...]'
  2. Jeff Langr. Modern C++ Programming with Test-Driven Development. 2013. ISBN: 978-1-937785-48-2. Chapter 3.4, page 59.
  3. Robert C. Martin ('Uncle Bob'). http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml