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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
67
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
今日から始めるAmazon Bedrock AgentCore
har1101
4
390
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
430
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
3.8k
外部キー制約の知っておいて欲しいこと - RDBMSを正しく使うために必要なこと / FOREIGN KEY Night
soudai
PRO
12
4.6k
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
3
1.3k
Meshy Proプラン課金した
henjin0
0
240
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
73k
レガシー共有バッチ基盤への挑戦 - SREドリブンなリアーキテクチャリングの取り組み
tatsukoni
0
200
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
0
700
Amazon Bedrock AgentCore 認証・認可入門
hironobuiga
3
520
GitLab Duo Agent Platform × AGENTS.md で実現するSpec-Driven Development / GitLab Duo Agent Platform × AGENTS.md
n11sh1
0
120
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
1.5k
Featured
See All Featured
Done Done
chrislema
186
16k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Test your architecture with Archunit
thirion
1
2.1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
400
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
The Invisible Side of Design
smashingmag
302
51k
Claude Code のすすめ
schroneko
67
210k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Skip the Path - Find Your Career Trail
mkilby
0
52
Testing 201, or: Great Expectations
jmmastey
46
8k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
63
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