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
sjonnet
January 10, 2013
Technology
1
84
Testing
sjonnet
January 10, 2013
Tweet
Share
More Decks by sjonnet
See All by sjonnet
Git
sjonnet
0
68
Services
sjonnet
1
78
Pollyfills
sjonnet
1
78
MVC
sjonnet
4
210
extCSS
sjonnet
1
100
Error
sjonnet
1
68
Other Decks in Technology
See All in Technology
(金融庁共催)第4回金融データ活用チャレンジ勉強会資料
takumimukaiyama
0
140
システムのアラート調査をサポートするAI Agentの紹介/Introduction to an AI Agent for System Alert Investigation
taddy_919
2
2k
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
510
データ民主化のための LLM 活用状況と課題紹介(IVRy の場合)
wxyzzz
2
690
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
230
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
0
830
インフラエンジニア必見!Kubernetesを用いたクラウドネイティブ設計ポイント大全
daitak
0
330
広告の効果検証を題材にした因果推論の精度検証について
zozotech
PRO
0
140
GSIが複数キー対応したことで、俺達はいったい何が嬉しいのか?
smt7174
3
150
配列に見る bash と zsh の違い
kazzpapa3
1
120
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
100
The World Runs on Bad Software
bkeepers
PRO
72
12k
Test your architecture with Archunit
thirion
1
2.1k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
98
What's in a price? How to price your products and services
michaelherold
247
13k
So, you think you're a good person
axbom
PRO
2
1.9k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
180
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.9k
Building the Perfect Custom Keyboard
takai
2
680
Being A Developer After 40
akosma
91
590k
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