Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Test all the things! Code hinting Unit testing Functional testing
Slide 2
Slide 2 text
Frontend :( ● Testing is hard weird ● Not sure what to test ● TIMTOWTDI
Slide 3
Slide 3 text
How I learned to stop worrying and love tests.
Slide 4
Slide 4 text
Why How I learned to stop worrying and love tests.
Slide 5
Slide 5 text
editor holy war hard vs soft tabs code readability syntax consistency team.length > 1
Slide 6
Slide 6 text
comments are lies documentation is fiction intent !== effect document behaviour, not implementation // this is not a doc
Slide 7
Slide 7 text
downtime is $ never deploy a broken app env.production = true;
Slide 8
Slide 8 text
N builds / day triggered by any developer who broke the build? ship it
Slide 9
Slide 9 text
Then how?
Slide 10
Slide 10 text
It's the little things: line length, camel casing, tabs/spaces, ... Benevolent dictator of syntax JSHint
Slide 11
Slide 11 text
nodeunit DRY bug fixing Behaviour is documented, implementation is verified. "How did that utility work again?"
Slide 12
Slide 12 text
CasperJS Run high-level tests on a headless WebKit "Do all our features still work?"
Slide 13
Slide 13 text
Demo https://github.com/cbas/demo-testing https://travis-ci.org/cbas/demo-testing
Slide 14
Slide 14 text
I am Sebastiaan I email seb@cf.sg I blog ninja.sg I work cf.sg I code git.io/seb