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
Testing JavaScript like a "BOSS"
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Swaroop SM
April 21, 2015
Technology
72
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Testing JavaScript like a "BOSS"
Glance to JavaScript Testing
Swaroop SM
April 21, 2015
More Decks by Swaroop SM
See All by Swaroop SM
Client-Side Data Modelling and more...
swaroopsm
0
64
ReactJS Awesomeness
swaroopsm
3
260
The Truth About Truthy & Falsy
swaroopsm
1
61
Other Decks in Technology
See All in Technology
AI・HPC開発を支えるGPU環境の新しい選択肢 液冷GPUシステム「AquSys」の取り組み
gpuunite_official
0
220
SmartHR Engineering Team Deck
smarthr
1
3.4k
猫付きpingコマンドを自作
uyuki234
0
290
【書籍出版記念】 10周回って、エージェント開発は RAGがすべてだった。〜RAGの歴史と開発現場で見えた実践知〜
akiratameto
14
5.5k
ハッカソンで入賞した話 @ Findy LT
asari194617
0
1.5k
MIXIで活躍できるエンジニアを 若手社員目線で考えてみる
mixi_engineers
PRO
0
130
AIで変わるエンジニアの働き方(仮)
naoinaoi
0
390
地震情報アプリを作ってみた
yama3133
1
110
AI時代に、人は何を、どう学ぶのか #pbl_pub / What and How Do We Learn in the AI Era?
takaking22
1
240
カーネルまで探検して理解するふたつの自動計装
sumiyae
0
150
コネクションをピン留めさせずに SELECTクエリのタイムアウトを設定した話
codmoninc
0
200
属人化を叩き割れ!「制作加速」と「安定化」の矛盾を打破する:8年目プロダクトが辿り着いた「ミスが起こり得ない」アセット制作フローの全貌
gree_tech
PRO
0
120
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
Leo the Paperboy
mayatellez
8
2.2k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
870
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
30 Presentation Tips
portentint
PRO
1
370
Accessibility Awareness
sabderemane
1
180
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Building Adaptive Systems
keathley
44
3.2k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
360
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
260
Context Engineering - Making Every Token Count
addyosmani
9
1.1k
Transcript
Testing JavaScript Like A “BOSS”
Testing Ground • Robust Test Framework • Assertion Library •
Spying, Stubbing, Mocking Library • Test Runner • Reporting
Test Framework • DSL for writing tests • QUnit •
Jasmine • Mocha
Assertion Library • expect() • assert() • should() • ChaiJS
• should.js • expect.js
Spy, Stub and Mock • SinonJS • sinon.spy() • sinon.stub()
• sinon.mock() Source: http://www.memecenter.com
Test Runner • Grunt / Karma • grunt-mocha / grunt-contrib-jasmine
• karma-mocha / karma-jasmine
Reporting • HTML / JSON / XML / Spec /
Dot • JSONCov / HTMLCov
Sit, back and relax! @smswaroop Cybrilla Technologies