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
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
sjonnet
January 10, 2013
Technology
90
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Testing
sjonnet
January 10, 2013
More Decks by sjonnet
See All by sjonnet
Git
sjonnet
0
72
Services
sjonnet
1
84
Pollyfills
sjonnet
1
83
MVC
sjonnet
4
220
extCSS
sjonnet
1
120
Error
sjonnet
1
74
Other Decks in Technology
See All in Technology
三人寄ればチューリング完全
puhitaku
6
2.5k
Genie Codeハンズオン応用編
taka_aki
0
140
小粒でもパワフルなJS Runtime Antjsについて
comamoca
0
120
FDEの心得
noriakioji
5
6.4k
Head First モブプログラミング / Head First Mobprogramming
takaking22
10
12k
形式手法特論:Hyperproperty とモデル検査 #kernelvm / Kernel VM Study Tokyo 19th
ytaka23
0
600
社内の7割が使うデータ基盤を、 データチーム2人で回すためにやったこと
koh_yoshi
4
1.5k
猫付きpingコマンドを自作
uyuki234
0
290
英語が話せなくてもKubeConスタッフに参加した話
yusuke427
2
1.1k
会社紹介資料 / Sansan Company Profile
sansan33
PRO
24
430k
私がブラウザを自作したくなった理由
supurazako
1
280
生成 AI の基礎 〜 サンプル実装で学ぶ基本原理
enakai00
7
4.6k
Featured
See All Featured
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
The Spectacular Lies of Maps
axbom
PRO
1
940
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
440
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
370
Java REST API Framework Comparison - PWX 2021
mraible
34
9.7k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
490
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
410
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
390
How to train your dragon (web standard)
notwaldorf
97
6.8k
Crafting Experiences
bethany
1
260
Technical Leadership for Architectural Decision Making
baasie
3
520
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Transcript
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