Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Frontend Testing
Search
Sebastiaan Deckers
April 01, 2013
Programming
3
330
Frontend Testing
Test All The Things: Code hinting, unit testing, functional testing.
Sebastiaan Deckers
April 01, 2013
Tweet
Share
More Decks by Sebastiaan Deckers
See All by Sebastiaan Deckers
Commons Host: Building a CDN for the rest of the world
sebdeckers
1
130
SVG Reality
sebdeckers
5
140
About Sebastiaan
sebdeckers
0
140
Frontend 100
sebdeckers
1
480
Frontend 101
sebdeckers
4
540
Frontend 102
sebdeckers
3
490
Frontend 103
sebdeckers
2
480
Grunt: The JavaScript Task Runner
sebdeckers
8
400
Other Decks in Programming
See All in Programming
Android開発以外のAndroid開発経験の活かしどころ
konifar
2
1k
ECMAScript、Web標準の型はどう管理されているか / How ECMAScript and Web standards types are maintained
petamoriken
3
390
マルチモジュールにおけるテスト最適化
fxwx23
0
210
The Sequel to a Dream of Ruby Parser's Grammar
ydah
1
220
Go1.23で入った errorsパッケージの小さなアプデ
kuro_kurorrr
2
400
Hono・Prisma・AWSでGeoなAPI開発
nokonoko1203
5
680
Debugging: All you need to know (for simultaneous interpreting)
jmatsu
2
890
Method Swizzlingを行うライブラリにおけるマルチモジュール設計
yoshikma
0
120
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
510
GraphQLの魅力を引き出すAndroidクライアント実装
morux2
3
780
Desafios e Lições Aprendidas na Migração de Monólitos para Microsserviços em Java
jessilyneh
2
150
開発を加速する共有Swift Package実践
elmetal
PRO
0
420
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
29
1.4k
How to Think Like a Performance Engineer
csswizardry
16
960
What’s in a name? Adding method to the madness
productmarketing
PRO
21
3k
What's new in Ruby 2.0
geeforr
340
31k
Side Projects
sachag
451
42k
Visualization
eitanlees
142
15k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
32k
Creatively Recalculating Your Daily Design Routine
revolveconf
215
12k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.3k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
36
2.1k
How GitHub (no longer) Works
holman
310
140k
Transcript
Test all the things! Code hinting Unit testing Functional testing
Frontend :( • Testing is hard weird • Not sure
what to test • TIMTOWTDI
How I learned to stop worrying and love tests.
Why How I learned to stop worrying and love tests.
editor holy war hard vs soft tabs code readability syntax
consistency team.length > 1
comments are lies documentation is fiction intent !== effect document
behaviour, not implementation // this is not a doc
downtime is $ never deploy a broken app env.production =
true;
N builds / day triggered by any developer who broke
the build? ship it
Then how?
It's the little things: line length, camel casing, tabs/spaces, ...
Benevolent dictator of syntax JSHint
nodeunit DRY bug fixing Behaviour is documented, implementation is verified.
"How did that utility work again?"
CasperJS Run high-level tests on a headless WebKit "Do all
our features still work?"
Demo https://github.com/cbas/demo-testing https://travis-ci.org/cbas/demo-testing
I am Sebastiaan I email
[email protected]
I blog ninja.sg I
work cf.sg I code git.io/seb