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
0
59
Testing JavaScript like a "BOSS"
Glance to JavaScript Testing
Swaroop SM
April 21, 2015
Tweet
Share
More Decks by Swaroop SM
See All by Swaroop SM
Client-Side Data Modelling and more...
swaroopsm
0
59
ReactJS Awesomeness
swaroopsm
3
260
The Truth About Truthy & Falsy
swaroopsm
1
55
Other Decks in Technology
See All in Technology
Tech-Verse 2025 Global CTO Session
lycorptech_jp
PRO
0
1.2k
「Chatwork」の認証基盤の移行とログ活用によるプロダクト改善
kubell_hr
1
240
開発生産性を組織全体の「生産性」へ! 部門間連携の壁を越える実践的ステップ
sudo5in5k
0
480
使いたいMCPサーバーはWeb APIをラップして自分で作る #QiitaBash
bengo4com
0
1.3k
自律的なスケーリング手法FASTにおけるVPoEとしてのアカウンタビリティ / dev-productivity-con-2025
yoshikiiida
0
590
強化されたAmazon Location Serviceによる新機能と開発者体験
dayjournal
3
260
AIとともに進化するエンジニアリング / Engineering-Evolving-with-AI_final.pdf
lycorptech_jp
PRO
0
140
Model Mondays S2E03: SLMs & Reasoning
nitya
0
240
Geminiとv0による高速プロトタイピング
shinya337
0
200
mrubyと micro-ROSが繋ぐロボットの世界
kishima
2
380
本が全く読めなかった過去の自分へ
genshun9
0
710
解析の定理証明実践@Lean 4
dec9ue
1
200
Featured
See All Featured
Facilitating Awesome Meetings
lara
54
6.4k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
500
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.5k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
5
230
Automating Front-end Workflow
addyosmani
1370
200k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
20k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
940
Rebuilding a faster, lazier Slack
samanthasiow
82
9.1k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
5.9k
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