Skip to content

Instantly share code, notes, and snippets.

@evie404
Last active August 29, 2015 14:25
Show Gist options
  • Save evie404/777b66bdb2c3ed02dc1d to your computer and use it in GitHub Desktop.
Save evie404/777b66bdb2c3ed02dc1d to your computer and use it in GitHub Desktop.
How I Learned to Love Testing
Better Testing in Ruby (or "How I Learned to Love Testing")
==============================
Introduction:
- Ricky
- Software Engineering @ Airbnb (Previous: Twitter, Aniarc)
Beginning:
- "I wrote the code, I already know it works!"
Why write test:
- Refactor
- Regression
- Report
"But writing test takes so much time"
Problem:
- Assertions are hard
- Assertion = Intent
- Understand how to assert
- Hard to set up test
- DRY also applies in test
- Test is also code, treat it like code
- Hard to write test
- Code smell
- Tests are slow
- GC Tune
- Associations
- let
- Parallelism
- Preloader
Demo: Test Refactoring
Testing Advance:
- Experimentation
- Canary / Staging
- Decider
- Service Integration
- Cross-service communication
- Front-end / Back-end integration
- iOS / Android / API integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment