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
Feature SpecにVisual Regression Testいれてみる
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Dueno
September 23, 2016
Technology
0
390
Feature SpecにVisual Regression Testいれてみる
Dueno
September 23, 2016
Tweet
Share
More Decks by Dueno
See All by Dueno
Rails,Feature specにViewの回帰テストを入れる
anochick
0
1.8k
継続的セキュリティテストを導入したい気持ち
anochick
0
1.5k
Other Decks in Technology
See All in Technology
こんなところでも(地味に)活躍するImage Modeさんを知ってるかい?- Image Mode for OpenShift -
tsukaman
0
160
Amazon Bedrock Knowledge Basesチャンキング解説!
aoinoguchi
0
150
AWS Network Firewall Proxyを触ってみた
nagisa53
1
240
Introduction to Bill One Development Engineer
sansan33
PRO
0
360
Frontier Agents (Kiro autonomous agent / AWS Security Agent / AWS DevOps Agent) の紹介
msysh
3
180
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
450
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
Ruby版 JSXのRuxが気になる
sansantech
PRO
0
160
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
240
OWASP Top 10:2025 リリースと 少しの日本語化にまつわる裏話
okdt
PRO
3
820
今日から始めるAmazon Bedrock AgentCore
har1101
4
410
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
380
Featured
See All Featured
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
120
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
110k
Navigating Team Friction
lara
192
16k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
93
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
220
Side Projects
sachag
455
43k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
280
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
Scaling GitHub
holman
464
140k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
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でも出来そう。
ありがとうございました