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
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
sjonnet
January 10, 2013
Technology
98
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Testing
sjonnet
January 10, 2013
Transcript
30 slides
Testing Mocha === the one Mocha/PhantomJS === the two Shawn
Jonnet <
[email protected]
> Thursday, January 10, 13
Overview •Mocha •Features •Interfaces •Reporting •PhantomJS •What the? •API/Examples •Integration
Thursday, January 10, 13
Mocha Thursday, January 10, 13
Features Thursday, January 10, 13
Features Thursday, January 10, 13
Assertions •BDD •TDD •Exports •Assert Any library you want Thursday,
January 10, 13
Assertions •should.js •expect.js •chai Any library you want Thursday, January
10, 13
Synchronous Thursday, January 10, 13
Asynchronous Thursday, January 10, 13
Done Thursday, January 10, 13
Hooks Thursday, January 10, 13
Browser support Thursday, January 10, 13
Diffs Thursday, January 10, 13
Interfaces Thursday, January 10, 13
BDD Thursday, January 10, 13
TDD Thursday, January 10, 13
Exports Thursday, January 10, 13
Qunit Thursday, January 10, 13
Reporters Thursday, January 10, 13
Dot Matrix Thursday, January 10, 13
Landing Strip Thursday, January 10, 13
Markdown/HTML Thursday, January 10, 13
Xunit Thursday, January 10, 13
JSON/HTML Cov Thursday, January 10, 13
Cobertura* Jenkins understands this format :( http://github.com/sjonnet19/mocha-cobertura-reporter Thursday, January 10,
13
PhantomJS Thursday, January 10, 13
Don’t be scared •Headless Webkit browser (FAST!!!) •JavaScript API •Ideal
for unit tests, site scraping, SVG rendering, network monitoring etc. Thursday, January 10, 13
API •phantom •WebPage •Filesystem •WebServer https://github.com/ariya/phantomjs/wiki/API-Reference Thursday, January 10, 13
Examples •Page automation •Network monitoring •Screen capture •Headless testing https://github.com/ariya/phantomjs/wiki/Examples
Thursday, January 10, 13
Cobertura & HTML-Cov* http://github.com/sjonnet19/mocha-cobertura-reporter http://github.com/sjonnet19/mocha-html-cov-reporter Thursday, January 10, 13
More Decks by sjonnet
See All by sjonnet
Git
sjonnet
0
76
Services
sjonnet
1
91
Pollyfills
sjonnet
1
89
MVC
sjonnet
4
220
extCSS
sjonnet
1
120
Error
sjonnet
1
80
Other Decks in Technology
See All in Technology
本の挿絵に困ったから挿絵メーカーを自作した
yoshimura_datam
1
130
攻撃と守りは何が変わり、何が変わらないのか~最近の不正アクセスから考える、リスク評価と標準の使いどころ
oidfj
2
370
Kiro Crew の Conductor mode: 1 つのチャットに渡したゴールを、コンダクターがワーカーに分けて任せる
inariku
PRO
1
140
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
290
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
7
3.9k
Go でトランザクション、どう書いてますか?
knwoop
2
650
対話 AI プラットフォーム「アイブリー」で実践する自然言語処理と事業開発
ivry_presentationmaterials
0
160
競馬予想をAIでやってみた話
yoshimura_datam
0
150
Kiro のリモートワークスペース: IDE は手元のままで、ワークスペースをクラウド、コンテナ、自前のマシンに置く
inariku
PRO
2
270
PR 生成AIガバナンスの全体像がわかる本
yoshimura_datam
0
120
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
130
OWASP AI Agentic Top10に準拠するクラウドネイティブなガードレールの実践(CNDW 2026)
keitah
1
460
Featured
See All Featured
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Facilitating Awesome Meetings
lara
57
7.2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
For a Future-Friendly Web
brad_frost
184
11k
Raft: Consensus for Rubyists
vanstee
143
7.9k
Optimising Largest Contentful Paint
csswizardry
37
4k