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

//TL;DR - Workshops on influential books #1

Avatar for MobiTalk MobiTalk
December 21, 2019

//TL;DR - Workshops on influential books #1

Workshop on Test Driven Development by Kent Beck

Avatar for MobiTalk

MobiTalk

December 21, 2019

More Decks by MobiTalk

Other Decks in Technology

Transcript

  1. Test Driven Development by Kent Beck • Balachander Mahalingam •

    Areef Shaik • MobiTalk Dec Meetup //TL;DR - Workshops on influential books #1
  2. “This book is another example of my overall quest to

    find fundamental rules underlying effective software development. I’m looking for a theory in the physics sense, but I always take something I enjoy doing, subject it to a microscopic examination, and see if following simple rules enhances my enjoyment”
  3. What's wrong with Testing? Test is a verb meaning “to

    evaluate.” Test is also a noun “a procedure leading to acceptance or rejection”
  4. What is TDD? • TDD is a technique whereby you

    write your test cases before you write any implementation code; • TDD = Test First Coding + Refactoring • As TDD evolves: • Your code will be more refactored • You’ll always be improving the quality of your design • Thereby, less rework in the future
  5. TDD Demystified • Write a test • Think about how

    you would like the operation in your mind to appear in your code • Make it run • If a clean, simple solution is obvious, then type it in. If the clean, simple solution is obvious but it will take you few minute, then make a note of it and get back to the main problem, which is getting the bar green in seconds • Make it right • Now that the system is behaving, put the sinful ways of the recent past behind you. Step back onto the straight and narrow path of software righteousness. Remove the duplication that you have introduced and get to green quickly.
  6. Applying learnings for all sorts of Validations! UI Tests Integration

    Tests Unit Tests Ref: https://martinfowler.com/tags/test%20categories.html xUnit, Mocks Cucumber, FitNesse, SpecFlow Appium, Espresso, Robotium