Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Upcoming SlideShare
What to Upload to SlideShare
What to Upload to SlideShare
Loading in …3
1 of 62

Tdd: seriously, try it! { revisited with code slides }



Download to read offline

Have you heard of TDD? Are you interested or familiar with this practice but have never been able to understand it?

In this session I'd like to present the benefits of Test-Driven Development (TDD), explaing how it works and what the benefits are of using it. We will see in a more detailed approach this way of developing software, where our software is always built guided by tests.

We will go over some history about TDD, which is the main process we must follow when we work with this mechanic and the rules that surround it. We will also list the main advantages and disadvantages that most developers who practice TDD find and whether the arguments in favour add up to more than those that subtract. Finally, we will review some good habits and practices when applying TDD and see how to do it step by step with a Java code example.

At the end of the session, I hope attendees will have a wider understanding of what TDD is, what advantages it brings, why it is interesting to master it and also that you will take with you some tricks and good practices to be able to apply them in your day-to-day life when writing code 


This is the presentation I shared at:

- Jfokus 2021 Brown Bag sessions:

- Fosdem 2021:

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Editor's Notes

  • Kent Beck’s book…
    Developed XP during his work at Chrysler
  • VS create tests after…
  • You have to kind of "break" your rules and think outside your comfort zone

  • Specify what you want to code to do
    Create just enough code to satisfy the desired behaviour (just make it work!)
    Clean your code and test / remove duplication / make it better
  • Nacho -
  • Nacho -
    (copy the image in the Slack Channel ?)
  • Nacho -
  • Nacho -
  • This back-and-forth between test and code, driver and navigator, can offer better/richer feedback when building a system.
  • Genre = spoke “jonra”
  • We have to run the test! -> we have not instantiated the repository
  • We don’t’ want to call the DB in a unit test!
  • >>> MOCKED the repository !!!!
  • Test pass
  • Let’s build the repository
  • Include deps
  • Built the implementation
  • And the structure!
  • Run the tests!
  • toString + equals + hashcode in Film
  • GOOST >> TDD learn, understand & apply
    TDD by example – basic intro, idealised situation…
    The art of unit testing – easy to read
    TDD a practical guide – some examples with GUI & real examples
  • ×