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
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.7k
継続的セキュリティテストを導入したい気持ち
anochick
0
1.5k
Other Decks in Technology
See All in Technology
2025年 山梨の技術コミュニティを振り返る
yuukis
0
130
Knowledge Work の AI Backend
kworkdev
PRO
0
340
Microsoft Agent Frameworkの可観測性
tomokusaba
1
120
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
1
800
AR Guitar: Expanding Guitar Performance from a Live House to Urban Space
ekito_station
0
270
ECS_EKS以外の選択肢_ROSA入門_.pdf
masakiokuda
1
120
[Neurogica] 採用ポジション/ Recruitment Position
neurogica
1
140
人工知能のための哲学塾 ニューロフィロソフィ篇 第零夜 「ニューロフィロソフィとは何か?」
miyayou
0
210
アラフォーおじさん、はじめてre:Inventに行く / A 40-Something Guy’s First re:Invent Adventure
kaminashi
0
200
202512_AIoT.pdf
iotcomjpadmin
0
160
AIエージェントを5分で一気におさらい!AIエージェント「構築」元年に備えよう
yakumo
1
130
AWSインフルエンサーへの道 / load of AWS Influencer
whisaiyo
0
240
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.3k
HDC tutorial
michielstock
1
280
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.7k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
72
Faster Mobile Websites
deanohume
310
31k
YesSQL, Process and Tooling at Scale
rocio
174
15k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
It's Worth the Effort
3n
187
29k
4 Signs Your Business is Dying
shpigford
187
22k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
Docker and Python
trallard
47
3.7k
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でも出来そう。
ありがとうございました