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

URUG Testing Primer

URUG Testing Primer

Slides for a presentation introducing testing given to the Utah Valley Ruby Brigade in July 2011.

blowmage

July 01, 2012
Tweet

More Decks by blowmage

Other Decks in Programming

Transcript

  1. TESTING PRIMER
    Making sense of TDD and BDD

    View Slide

  2. WHY TEST?

    View Slide

  3. COST PER CHANGE
    (BUGS, NEW FEATURES, ETC)
    Cost
    Time
    Non-TDD TDD

    View Slide

  4. COST PER TEST
    Models
    Controllers/Routes
    Views/Helpers
    Application
    In Browser

    View Slide

  5. ROI PER TEST
    Models
    Controllers/Routes
    Views/Helpers
    Application
    In Browser

    View Slide

  6. CORRELATION
    In Browser
    Acceptance Tests
    ???
    Cucumber
    Capybara
    Selenium
    Application
    Acceptance Tests
    IntegrationTest ???
    Cucumber
    Capybara
    Selenium
    Views & Helpers
    Integration Tests
    ActionView::TestCase
    RSpec
    Controllers & Routes
    Integration Tests
    ActionController::TestCase RSpec
    Model Unit Tests ActiveRecord::TestCase
    RSpec

    View Slide

  7. MAXIMIZE VALUE

    View Slide