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
89
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
71
Services
sjonnet
1
83
Pollyfills
sjonnet
1
81
MVC
sjonnet
4
210
extCSS
sjonnet
1
110
Error
sjonnet
1
72
Other Decks in Technology
See All in Technology
ACE-Step-1.5で見る 音楽生成AIのしくみと“破綻だけ直す”Retake機能の開発【zennfes spring 2026 登壇資料】
personabb
1
530
[AWS Summit Japan 2026]迷っているあなたへ_小さな一歩が、やがて自分を助けてくれる
sh_fk2
1
120
AI駆動開発を通して感じた、 AI時代のデザイナーの役割変化
whisaiyo
3
2.2k
MUSUBI 田中裕一『AIと共に行う「しごとのリデザイン」- スモールバックオフィス編』AI Ops Lab #4
musubi
0
230
Agent Skills設計で柔軟性と硬さのバランスが難しい話
nassy20
0
140
Kiroで書いた 設計書 が AI レビューの 採点基準 になる
ezaki
0
130
RAG を使わないという選択肢
tatsutaka
1
260
SteampipeとExcel Power QueryでAWS構成定義書の作成を自動化する
jhashimoto
0
130
200個のGitHubリポジトリを横断調査したかった
icck
0
130
気づかぬうちにセキュリティ負債を生むAPIキー運用
sgwrmctk
0
170
攻撃者視点で考えるDetection Engineering
cryptopeg
3
1.9k
AIのReact習熟度を測る
uhyo
2
640
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.2k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
320
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
460
Odyssey Design
rkendrick25
PRO
2
700
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
840
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
370
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.3k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
440
Discover your Explorer Soul
emna__ayadi
2
1.1k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.4k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.7k
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