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
Acceptance testing in Ember.js
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Balint Erdi
May 08, 2014
Technology
550
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Acceptance testing in Ember.js
Balint Erdi
May 08, 2014
Transcript
17 slides
ACT II - ACCEPTANCE TESTING In which our hero ventures
into uncharted territory
TO MOCK OR NOT TO MOCK? To mock!! Drugs are
BAAD! Using the real server is slow & an added dependency is even more BAAAAD
IC-AJAX Very simple interface! Supports returning server errors! Ships with
the ember-app-kit (EAK) and the future-proof ember-cli
ALTERNATIVES ember-testing-httpRespond! Ships with EAK! sinon.js! great for mocking out
timers
FIXTURES Rosie! Rolling your own! DS.FixtureAdapter
ROSIE https://github.com/bkeepers/rosie
DS.FIXTUREADAPTER Can’t test server error responses! Depends on ember-data! Mostly
useful for development
TEST HELPERS
ASYNC HELPERS FROM EMBER-TESTING visit! click! fillIn! keyEvent! triggerEvent! andThen
BUT WAIT! All these (async) helpers return wait(), a promise
that waits for all async operations to finish
SYNC HELPERS FROM EMBER-TESTING find(cssSelector)! currentPath! currentRouteName! currentURL
EXAMPLE I testing for content
CODE EXAMPLE FOR A TEST testing location
EXAMPLES sync and async
RUN’EM! via qunit in the browser! via testem from the
command line! EAK has both these already set up
EXAMPLE qunit in the browser
EXAMPLE testem from the cmdline
More Decks by Balint Erdi
See All by Balint Erdi
Data Loading Patterns with JSON API
balint
5
1.5k
Why you should consider Ember.js for your next project
balint
4
370
Data Loading Patterns in Ember
balint
1
280
Auth* in Ember apps with Torii
balint
1
340
(Somewhat) Complex Component Design – Ember.BP, 2015/02/11
balint
1
130
Complex Component Design in Ember
balint
0
420
Don't call me back - How Ember uses promises and how you can, too
balint
5
11k
Unit testing in Ember.js
balint
0
130
Introduction to ember-data
balint
0
200
Other Decks in Technology
See All in Technology
Is the Website Dying?
miriamschwab
0
230
Kiro のリモートワークスペース: IDE は手元のままで、ワークスペースをクラウド、コンテナ、自前のマシンに置く
inariku
PRO
2
250
デザインシステムのフィードバックループをほぼ自動化した話
tongari07
0
950
専門家に使ってもらうAIプロダクトをつくる - 病院の医事課向けDPCコーディング支援システムの設計と評価
hagino3000
4
1.1k
Agent Routerで作るマルチテナント 推論基盤 #CNDW2026 / Building Multi-Tenant Inference Platform with Agent Router #CNDW2026
everpeace
5
640
生成AIによる情報システムへのインパクト (2026年11月版)
taka_aki
0
120
Kiro Enterprise Management: 管理者が 1 か所で決め、全員の Kiro に届ける
inariku
PRO
1
150
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
520
メディアアートを〈拡張〉する——器官学と個体化論を手がかりに
_kotobuki_
0
370
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
290
Amazon EFS のマルウェアスキャンをClamAV で自前実装したら苦労した話
mtmtfactory01
0
130
Well, that’s weird…
csswizardry
3
240
Featured
See All Featured
Optimizing for Happiness
mojombo
378
72k
Technical Leadership for Architectural Decision Making
baasie
4
660
The Cost Of JavaScript in 2023
addyosmani
56
10k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
650
Building the Perfect Custom Keyboard
takai
2
970
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Agile that works and the tools we love
rasmusluckow
331
22k
RailsConf 2023
tenderlove
30
1.6k
Building an army of robots
kneath
307
47k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.7k
Everyday Curiosity
cassininazir
0
420
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850