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
Feature SpecにVisual Regression Testいれてみる
Search
Dueno
September 23, 2016
Technology
410
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Feature SpecにVisual Regression Testいれてみる
Dueno
September 23, 2016
More Decks by Dueno
See All by Dueno
Rails,Feature specにViewの回帰テストを入れる
anochick
0
1.8k
継続的セキュリティテストを導入したい気持ち
anochick
0
1.6k
Other Decks in Technology
See All in Technology
大型犬好きによるPugの紹介
yamanoku
1
160
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
250
Browser Spec: Testing Hotwire with Ruby
takahashim
1
120
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
160
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
780
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
1
460
Metadata - Section 1: HTML Basics
mohab1
0
120
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
How to Design Configuration for Rails Applications
willnet
1
810
Running Kotlin + Quarkus with Lambda
nealle
1
3.8k
1つのリクエストを追って理解する - llm-dのP/D分離
akhino
1
160
Featured
See All Featured
KATA
mclloyd
PRO
35
16k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Google's AI Overviews - The New Search
badams
0
1.6k
Chasing Engaging Ingredients in Design
codingconduct
0
360
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Ethics towards AI in product and experience design
skipperchong
2
430
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
A Tale of Four Properties
chriscoyier
163
24k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
WCS-LA-2024
lcolladotor
0
890
Visualization
eitanlees
153
17k
Transcript
Feature specに Visual Regression Test いれてみる 表参道.rb #14 2016/08/04
自己紹介 • Dueno @anoChick • 株式会社 Speee 新卒3年目 中途 •
Webマーケティング事業部 • 主な開発プロダクト↓ Webマーケティング総合支援プラットフォーム サイト内のテキスト・キーワード分析 メトリクス分析
本題
E2Eテスト • エンドトゥエンドテスト、統合テストとも呼ばれる • システム全体が正しく動作するかを確認するテスト • テストシナリオを用意して、ユーザの利用と同じ動作が実 際に行われるかをブラウザの自動操作で検証する 例) ログインのテスト
そこに Regression Testを 差し込む
Regression Test • 回帰テスト、退行テストとも呼ばれる • 機能追加・修正によりコードを書き換えた際、想定しない範 囲にまで影響が及んでないかを確認するテスト • 今回は一般的な自動テストでは対応が難しいUIに関する Regression
Testを扱う(Visual Regression Testing)
作る
できた
つかいかた 1.Feature spec 内 upload_evidence_image(‘identifier’) と書く。 [bucket名]/[branch名]/[ビルド番号]/screenshot/[identifier].png でscreenshotが吐かれる(AWS
S3)
つかいかた 2.前ビルドのscreenshotとの差分をとる Mean error per pixel : ピクセルあたりの平均誤差
Normalized mean erro : 正規平均誤差 Nomalized maximum error : 最大誤差 ↑数値ででる 全部S3に吐かれる
レポート出力 するぞ
レポート出力・描画 静的htmlコンテンツとしてS3に吐く GoogleWebComponents/google-chart が便利だった <link rel="import" href="google-chart.html"> でTemplateをimportして、
と記述するだけで グラフが描画されるの、すごい。
レポート例 いい感じにしたい
そのた • 異常値検出(anomaly detection)とか考えたけど運用でいま いちっぽくなりそう。 • 分散のしかた。分散テスト実行もそうだけど、差分計算と か、AWSLambdaでも出来そう。
ありがとうございました