Download - Taking Your Rails Tests Offline
TAKE YOUR TESTS
OFFLINEtest-driving external services
@gohard_everyday
`Pleasure
`Pleasure
Pain
my first project…
`IRRESPONSIBLE DEVELOPER
`I WRITE TESTS
Starbucks…
THE REAL DEAL
`do you even tdd?
`ONE
MONTH
`
it’s been two.
`
#Benefits
`
#Benefits
•Focus
`
#Benefits
•Focus
•A Defined Finish Line
`
#Benefits
•Focus
•A Defined Finish Line
•Cleanest Code Ever
`it’s really
not that serious
`TDD
`Integration || Unit
• Route • View • Controller • Model
The Stack
`Integration•Multiple Areas of the Stack
`Integration•Multiple Areas of the Stack
•One AreaUnit
`
TDDIntegration
with Backend API Call
`
ToolsRSpec - Testing Framework Capybara - Simulate User
VCR - Replay Requests Webmock - Fake Requests
`
LE’GO
`
TDDIntegration
with Frontend API Call
`
ToolsRSpec - Testing Framework Capybara - Simulate User
Puffing Billy - Replay Requests
`LEZZGO
`
#thickskin
`
try TDD#thickskin
`
try TDD#thickskin
Backend - VCR
`
try TDD#thickskin
Backend - VCR
Frontend - Puffing Billy
`@gohard_everyday
github.com/plicjo