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

red, green, relax

red, green, relax

Casey O'Hara

October 02, 2012
Tweet

More Decks by Casey O'Hara

Other Decks in Programming

Transcript

  1. red green relax how automated testing can make your job

    more relaxing Tuesday, October 2, 12
  2. a test suite is a program that exercises your software

    to confirm that it works Tuesday, October 2, 12
  3. a test suite is a program that exercises your software

    to confirm that it works so you don’t have to Tuesday, October 2, 12
  4. a test suite is a program that exercises your software

    to confirm that it works so you can go skiing Tuesday, October 2, 12
  5. a test suite is a program that exercises your software

    to confirm that it works so you can go golfing Tuesday, October 2, 12
  6. a test suite is a program that exercises your software

    to confirm that it works so you can go drinking Tuesday, October 2, 12
  7. a test suite is a program that exercises your software

    to confirm that it works so you can go relax Tuesday, October 2, 12
  8. automated testing • ensures your software works • reduces bugs

    • protects against regressions • documents your code Tuesday, October 2, 12
  9. automated testing • ensures your software works • reduces bugs

    • protects against regressions • documents your code • 1,000,000,000x faster* *scientific fact Tuesday, October 2, 12
  10. Feature: Calculator In order to perform calculations As a user

    I want to be able to add, subtract, multiply and divide numbers Scenario: Addition Given I am on the calculator page When I enter "1 + 1" And I press "Calculate" Then I should see "1 + 1 = 2" Tuesday, October 2, 12
  11. Feature: Calculator In order to perform calculations As a user

    I want to be able to add, subtract, ! multiply and divide numbers Scenario: Addition Given I am on the calculator page When I enter "1 + 1" And I press "Calculate" Then I should see "1 + 1 = 2" Tuesday, October 2, 12
  12. describe Calculator do it "can add numbers" do ! !

    Calculator.calculate("1 + 1").should == 2 end end Tuesday, October 2, 12
  13. confidence moving fast more features happy clients leads to leads

    to leads to leads to Tuesday, October 2, 12
  14. confidence moving fast more features happy clients happy imulus leads

    to leads to leads to leads to Tuesday, October 2, 12
  15. confidence moving fast more features happy clients happy imulus leads

    to leads to leads to leads to leads to Tuesday, October 2, 12