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
Swaroop SM
April 21, 2015
Technology
66
0
Share
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
63
ReactJS Awesomeness
swaroopsm
3
260
The Truth About Truthy & Falsy
swaroopsm
1
59
Other Decks in Technology
See All in Technology
[OpsJAWS 40]リリースしたら終わり、じゃなかった。セキュリティ空白期間をAWS Security Agentで埋める
sh_fk2
3
260
色を視る
yuzneri
0
140
Chasing Real-Time Observability for CRuby
whitegreen
0
270
Keeping Ruby Running on Cygwin
fd0
0
180
Cortex Codeのコスト見積ヒントご紹介
yokatsuki
0
120
Hacobu Tech Deck
hacobu
PRO
0
130
ハーネスエンジニアリングの概要と設計思想
sergicalsix
9
5.4k
Expiration of Secure Boot Certificates for vSphere Virtual Machines
mirie_sd
0
110
データ定義の混乱と戦う 〜 管理会計と財務会計 〜
wonohe
0
150
20年前の「OSS革命」に学ぶ AI時代の生存戦略
samakada
0
490
20260428_Product Management Summit_tadokoroyoshiro
tadokoro_yoshiro
14
15k
Class.new is all you need
riseshia
1
190
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
432
67k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
740
Skip the Path - Find Your Career Trail
mkilby
1
110
30 Presentation Tips
portentint
PRO
1
280
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
260
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
160
Context Engineering - Making Every Token Count
addyosmani
9
840
Agile that works and the tools we love
rasmusluckow
331
21k
Marketing to machines
jonoalderson
1
5.2k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.2k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
220
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
440
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