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
accepting acceptance testing
Search
cpow
August 12, 2016
Technology
0
24
accepting acceptance testing
Introduction to acceptance testing with ember-cli and ember-cli-mirage
cpow
August 12, 2016
Tweet
Share
Other Decks in Technology
See All in Technology
レガシー共有バッチ基盤への挑戦 - SREドリブンなリアーキテクチャリングの取り組み
tatsukoni
0
210
2人で作ったAIダッシュボードが、開発組織の次の一手を照らした話― Cursor × SpecKit × 可視化の実践 ― Qiita AI Summit
noalisaai
1
370
仕様書駆動AI開発の実践: Issue→Skill→PRテンプレで 再現性を作る
knishioka
2
600
入社1ヶ月でデータパイプライン講座を作った話
waiwai2111
1
250
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
480
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
410
Tebiki Engineering Team Deck
tebiki
0
24k
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
130
今日から始めるAmazon Bedrock AgentCore
har1101
4
400
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
0
790
GSIが複数キー対応したことで、俺達はいったい何が嬉しいのか?
smt7174
3
140
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
440
Featured
See All Featured
Thoughts on Productivity
jonyablonski
74
5k
Paper Plane (Part 1)
katiecoart
PRO
0
4k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.1k
Documentation Writing (for coders)
carmenintech
77
5.2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
エンジニアに許された特別な時間の終わり
watany
106
230k
Color Theory Basics | Prateek | Gurzu
gurzu
0
190
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
63
The Cult of Friendly URLs
andyhume
79
6.8k
Statistics for Hackers
jakevdp
799
230k
GitHub's CSS Performance
jonrohan
1032
470k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
Transcript
Accepting Acceptance Testing Chris Power
Chris Power Deets • @cpowrox Fun Facts • pisces •
soy • birch trees • grass
Discussion Overview of Acceptance testing Ember, and how it handles
Acceptance testing Implement basic acceptance tests for requirement
What is Acceptance testing “acceptance testing is a test conducted
to determine if the requirements of a specification or contract are met”
How does do it? With a suite of different tools
• Ember.Test • Qunit • Ember-cli-mirage
Ember.Test Helpers Synchronous Helpers find(selector, context); currentPath(); currentRouteName(); currentURL(); Asynchronous
Helpers visit(url); fillIn(selector, text); click(selector); Wait Helper andThen();
Example Structure import { test } from 'qunit'; import moduleForAcceptance
from 'application/tests/helpers/module-for-acceptance'; moduleForAcceptance('Acceptance | landing page'); test('User sees landing page before he/she can vote', function(assert) { visit('/vote'); andThen(() => { assert.equal(find(‘.landing’).length(), 1, ‘landing page is currently visible'); }); }); Importing build up / teardown stuff Asynchronous Helper Wait Helper Qunit Assertion Synchronous Helper
Let’s Code an Acceptance Test!
What does Zark want? User to rate a pokemon 1.
they see a landing page 2. after clicking through. they see a pokemon 3. they vote on hot/not and see value updated 4. they try to click again to get another pokemon 5. when they’re out of pokemon, they return home
What have we done? • Proved that our contract /
specification works • A sanity check for all devs/qa • Groundwork for how the application behaves
Thank you! (Please sign your NDAs on the way out)