Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Frontend Testing
Search
Sebastiaan Deckers
April 01, 2013
Programming
380
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Frontend Testing
Test All The Things: Code hinting, unit testing, functional testing.
Sebastiaan Deckers
April 01, 2013
Transcript
14 slides
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
More Decks by Sebastiaan Deckers
See All by Sebastiaan Deckers
Commons Host: Building a CDN for the rest of the world
sebdeckers
1
180
SVG Reality
sebdeckers
5
200
About Sebastiaan
sebdeckers
0
190
Frontend 100
sebdeckers
1
540
Frontend 101
sebdeckers
4
590
Frontend 102
sebdeckers
3
540
Frontend 103
sebdeckers
2
550
Grunt: The JavaScript Task Runner
sebdeckers
8
440
Other Decks in Programming
See All in Programming
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
140
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
220
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.4k
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
1k
Crash Auto Pipelines
veronikapj
1
430
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
430
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
370
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
220
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
690
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
180
Getting Started with Vibe Coding
miccheng
0
240
Featured
See All Featured
It's Worth the Effort
3n
188
29k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
670
Making the Leap to Tech Lead
cromwellryan
135
10k
The untapped power of vector embeddings
frankvandijk
2
2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Done Done
chrislema
187
17k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
310
30 Presentation Tips
portentint
PRO
1
470
Build your cross-platform service in a week with App Engine
jlugia
234
19k