Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Behaviour Driven Development - the whys and hows

Behaviour Driven Development - the whys and hows

Pawel Dudek

April 20, 2015
Tweet

More Decks by Pawel Dudek

Other Decks in Programming

Transcript

  1. @eldudi Kolawa, Adam; Huizinga, Dorota (2007). Automated Defect Prevention: Best

    Practices in Software Management. “Unit testing is a method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures are tested to determine if they are fit for use.” 3
  2. @eldudi “Unit testing is a method by which individual units

    of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures are tested to determine if they are fit for use.” 5 Kolawa, Adam; Huizinga, Dorota (2007). Automated Defect Prevention: Best Practices in Software Management.
  3. @eldudi An app is a set of behaviours created by

    programmer and expected by user. 7
  4. @eldudi Providing a proof whether program works after it has

    been written increases burden on the programmer 24
  5. @eldudi –Edsger W. Dijkstra “If one first asks oneself what

    the structure of a convincing proof would be and, having found this, then constructs a program satisfying this proof’s requirements, then these correctness concerns turn out to be a very effective heuristic guidance.” 26
  6. @eldudi TDD is a great way to determine how complex

    your code has become. You just have to listen. 35
  7. @eldudi This always points to an overcomplicated design And your

    tests are here to point that out. Very clearly 39
  8. Are unit tests an invaluable tool for writing great software?

    Heck yes.  Am I going to produce a poor product if I can’t unit test? Hell no. Jonathan Rasmusson 67 http://agilewarrior.wordpress.com/2012/10/06/its-not-about-the-unit-tests/