integration / acceptance тестирование с помощью cucumber

Download Integration / Acceptance тестирование с помощью Cucumber

If you can't read please download the document

Upload: railsclub

Post on 16-Jun-2015

1.277 views

Category:

Technology


7 download

DESCRIPTION

Railsclub SPB, 26 Апреля 2009,Евгений Большаков

TRANSCRIPT

  • 1. Integration / Acceptance Cucumber

2.

  • (BDD, etc)
  • (Selenium, etc)

3.

    • ,

4. Webrat

    • Webrat

5. , ?

    • , Stories,

6. Cucumber

    • Cucumber

7. Cucumber

  • Step definitions
  • Webrat steps
  • Steps inside steps
  • Tables in step definitions
  • Step parameters are strings!
  • Testing emails
  • Sharing data between steps: instance vars vs explicit
  • Stubbing (Date)

8. Cucumber

  • Use any testing framework
  • Organize features & steps
  • Use factories (Pickle)
  • Refactor (your World)
  • Run (cucumber --help, rake features, tags)

9. Cucumber I18N 10. Cucumber

  • Rails Ruby (Selenium, Mechanize, etc)
  • web

11. Cucumber vs Plain Integration Test

  • Integration tests
    • Rails
  • Cucumber
    • ( )

12.

  • Testing Emails:http://drnicwilliams.com/2009/03/26/testing-outbound-emails-with-cucumber/
  • Stubbing
    • Rspec:http://www.brynary.com/2009/2/3/cucumber-step-definition-tip-stubbing-time (rspec)
    • Mocha:http://gist.github.com/80554 (mocha)
  • Pickle:http://github.com/ianwhite/pickle/tree/master
  • Refactoring:http://drnicwilliams.com/2009/04/15/cucumber-building-a-better-world-object/
  • Usage
    • Testing capistrano recipies:http://pivotallabs.com/users/jdean/blog/articles/763-testing-capistrano-recipes-with-cucumber
    • Testing distributed systems:http://www.benmabey.com/2009/02/17/using-cucumber-to-integrate-distributed-systems-and-test-messaging/
  • How to write stories:http://dannorth.net/whats-in-a-story

13. ? email / jabber: [email protected] http://www.taknado.com http://github.com/eugenebolshakov : http://github.com/eugenebolshakov/spbruby