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

Test, you fools ( Testad malditos)

Test, you fools ( Testad malditos)

A light introduction to the automated testing process.

Karumi

June 21, 2016
Tweet

More Decks by Karumi

Other Decks in Technology

Transcript

  1. Testad malditos
    Jorge Juan Barroso Carmona
    [email protected]
    @flipper83
    +JorgeJBarroso
    Android Expert

    View Slide

  2. Basho. Poet
    Karumi is the beauty of ordinary things spoken of in
    a simple way.

    View Slide

  3. Adam Tornhill
    “Testing is the process of executing a
    program with the intent of finding
    errors. ... This definition of testing has
    many implications ... it implies that
    testing is a destructive process, even a
    sadistic process, which explains why
    most people find it difficult.”
    Glenford J. Myers

    View Slide

  4. Why Write Test?

    View Slide

  5. It is your
    responsibility

    View Slide

  6. The only way to makes a
    refactor

    View Slide

  7. it’s really good live
    Documentation

    View Slide

  8. it’s a tool for
    Design

    View Slide

  9. it’s
    Money

    View Slide

  10. “Bad code affect to your Costumer”
    Martin Fowler

    View Slide

  11. View Slide

  12. View Slide

  13. Acceptance Testing

    View Slide

  14. It’s from the point of view of the
    Customer

    View Slide

  15. similar to
    Natural
    Language

    View Slide

  16. near to
    Frameworks

    View Slide

  17. Robotium
    Appium
    Espresso

    View Slide

  18. Integration Testing

    View Slide

  19. Test how modules work
    together

    View Slide

  20. Unit Testing

    View Slide

  21. 24
    different definitions of unit test.

    View Slide

  22. You're testing should be
    isolated
    from its collaborators

    View Slide

  23. Small
    scope

    View Slide

  24. Unit tests are not
    silver bullets

    View Slide

  25. A unit is
    not a class

    View Slide

  26. Fast

    Isolated
    Repeatable
    Self-Verifing
    Timely/Transparent

    View Slide

  27. Stubs Canned responses
    Mocks Expectations

    Spies Save information
    Fake Near to real one
    Dummy Not make anything
    Test Doubles

    View Slide

  28. Given

    When
    Then

    View Slide

  29. Adam Tornhill
    “When you are very thirsty, even dirty
    water will keep you alive.”
    J. B. Rainsberger

    View Slide

  30. Bibliography
    They’re the cracks!
    Adicto Al verde. Joaquin Engelmo
    Elegant?? Unit Testing. Pablo Guardiola
    Working Effectively with Unit testing. Jay Fields
    Software Craftmanship. Sandro Mancuso
    Mocks Aren't Stubs. martin fowler. 2007
    Software Reliability: Principles & Practices. Glenford J. Myers 1976
    The Art of Unit Testing. Roy Osherove
    Test Driven Development: By Example. Kent Beck

    View Slide

  31. Find me
    I am very social!
    [email protected]
    @flipper83
    +JorgeJBarroso
    Questions?

    View Slide

  32. View Slide