Writing the Right Tests
Writing the Right Tests
Mike Pennisi
Bocoup
Initial Conception
A More Realistic Model
assert(new Model() instanceof Model);
assert(new Model() instanceof Model);
(not helpful)
Taxonomies
Recap: Starting Point
Decomposition: "My Code"
Decomposition: "Their Code"
Decomposition: "Services"
What Does it All Mean?
Unit Tests
Tools
cjohansen / Sinon.JS
airportyh / testem
Karma
Schedule
On pull request
git pre-commit hook
UI Tests
Tools
Selenium
assaf / node-replay
Schedule
On pull request
Browser Tests
Tools
Selenium
Sauce Labs
Schedule
On pull request
External Services
Tools
(see UI tests)
Schedule
Hourly / daily
Thanks!
jugglinmike.github.io/presentations/