• Save
Testing with Rspec
Upcoming SlideShare
Loading in...5
×
 

Testing with Rspec

on

  • 199 views

Sildes of the talk I gave at Software Craftsmanship Berlin Meetup. It's all about how we test within the Payments Team. ...

Sildes of the talk I gave at Software Craftsmanship Berlin Meetup. It's all about how we test within the Payments Team.

http://www.meetup.com/Software-Craftsmanship-Berlin/events/160616162/

Statistics

Views

Total Views
199
Views on SlideShare
199
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Testing with Rspec Testing with Rspec Presentation Transcript

  • Testing @Payments Team ! 27. Jan - Software Craftsman Meetup Berlin
  • SoundCloud • Worlds leading audio platform
 • reaching over 250 Millions users monthly
 • 12 hours of audio uploaded each minute
 • Based in Berlin, SF, NYC, London & Sofia
 • > 200 employees, ~ 40% developers, > 500 repositories

  • Payments Team • Responsible for Pro Products: 
 Subscriptions, Gift
 • Started 2 years ago - ‘from scratch’
 • 2 - 3 Developers + 1 Product Manager/Expert
 • Main tasks:
 - Maintain old system
 - Build new System as Service, integrate with new PSP Adyen
  • Infrastructure
  • ~ 2 yrs ago
  • ~ 1 yr ago
  • Today
  • Buckster - Internal Structure
  • How to Test?
  • Requirements • Reliable, fast, complete
 • Easy to understand, to extend & to maintain
 • Act as documentation

  • Test Structure ~ 25, 10 min ~ 280, 30 sec ~ 800, 24 sec
  • Unit Tests Tests: service & data layer, each path of each public method of each class
 
 mock internal services
 mock external clients
 rspec, factory girl

  • Integration Tests Tests: http request to response
 
 mock external client calls on http layer
 
 asserts response code + body
 asserts external requests
 rspec, webMock, factory girl
 !
  • System Tests Test: full flow
 Dedicated staging system, all others live
 asserts result page
 
 rspec, selenium, page objects
 !
  • Questions tobi@soundcloud.com
 @rngtng