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
Testing JavaScript like a "BOSS"
Search
Swaroop SM
April 21, 2015
Technology
82
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
Transcript
8 slides
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
More Decks by Swaroop SM
See All by Swaroop SM
Client-Side Data Modelling and more...
swaroopsm
0
69
ReactJS Awesomeness
swaroopsm
3
270
The Truth About Truthy & Falsy
swaroopsm
1
66
Other Decks in Technology
See All in Technology
PR 生成AIガバナンスの全体像がわかる本
yoshimura_datam
0
140
一口馬主の募集馬をAIで診断してみた
yoshimura_datam
0
130
20261119_AgentCore
takuyay0ne
2
350
正しくWeb サイトを守るためのコンテンツセキュリティーポリシー
hinalin
0
840
メディアアートを〈拡張〉する——器官学と個体化論を手がかりに
_kotobuki_
1
420
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
7
4.2k
みん強Lightning! データ基盤ひとりでできるかな
endonanana
0
230
Welcome JXL!
dynamis
0
1.3k
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
180
Kiro Enterprise Management: 管理者が 1 か所で決め、全員の Kiro に届ける
inariku
PRO
1
170
Taking back control of your AI development
inesmontani
PRO
0
320
技術書典で本を売る流れ
yoshimura_datam
0
210
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
340
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.3k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
670
The SEO identity crisis: Don't let AI make you average
varn
0
630
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.9k
Amusing Abliteration
ianozsvald
1
410
Odyssey Design
rkendrick25
PRO
3
980