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
VRTやってますか?reg-suitですか?
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ANDPAD inc
March 05, 2021
Programming
3.2k
1
Share
VRTやってますか?reg-suitですか?
2021/03/05 ANDPAD TechLive #4 ANDPAD FrontEnd NOW!!
ANDPAD inc
March 05, 2021
More Decks by ANDPAD inc
See All by ANDPAD inc
ANDPAD Ruby sponsor session in RubyKaigi 2026
andpad
0
190
AWS WAFの運用を地道に改善し、自社で運用可能にするプラクティス
andpad
2
860
アプリから 360 度カメラ「RICOH THETA」に接続して写真を撮影する
andpad
0
48
アンドパッドが提供する Drinks and Local Meals と Drinkup を大公開
andpad
0
120
建設DXを支えるANDPAD: 2025年のセキュリティの取り組みと卒業したいセキュリティ
andpad
0
420
小規模 SRE チームで支える、 Atlantis で実現するインフラ管理のセルフサービス化
andpad
1
100
Go コードベースの構成と AI コンテキスト定義
andpad
1
240
「もっと正確に、もっと効率的に」ANDPADの写真書き込み機能における、 現場の声を形にしたエンハンス
andpad
0
1.3k
複数チーム並行開発下でのコード移行アプローチ ~手動 Codemod から「生成AI 活用」への進化
andpad
0
340
Other Decks in Programming
See All in Programming
Lessons from Spec-Driven Development
simas
PRO
0
110
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
4
1k
新規プロダクトを高速で生み出すハーネスエンジニアリング
seanchas116
19
7.8k
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
340
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
140
Swiftのレキシカルスコープ管理
kntkymt
0
210
net-httpのHTTP/2対応について
naruse
0
420
inferと仲良くなる10分間
ryokatsuse
1
330
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
430
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
260
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
110
Modding RubyKaigi for Myself
yui_knk
0
860
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
140
Game over? The fight for quality and originality in the time of robots
wayneb77
1
180
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
460
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Why Our Code Smells
bkeepers
PRO
340
58k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
200
The browser strikes back
jonoalderson
0
1.1k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
190
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
150
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
210
Faster Mobile Websites
deanohume
310
31k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
590
Transcript
VRTやってますか? reg-suitですか? ANDPAD TechLive #4 Yuki Ichikawa
自己紹介 市川夕貴(いっちー) @ebizo-0202 施工管理Nuxt化 & 新機能開発 好きな声優:水樹奈々さん
VRTやってますか?
VRTとは - Visual Regression Test - 画像回帰テスト - 現在の正しいコンポーネントやページのスクリーンショットと開発中の スクリーンショットを比較して差分を検知するテスト
- ANDPAD 施工 Nuxt 化チームでは Storybook + Strorycap + reg-suit + S3 + CircleCI で実現している
None
None
None
None
None
None
None
None
None
None
None
None
VRTを運用していて感じること - コンポーネントの変更によって生じる差分が意図的なものかど うかが、ひと目で判断できるので安心感がある - story を書かないと VRT が出来ないので Storybook
のメンテ ナンスのモチベーションになる
今日お話するのは運用する中でのひとコマ
ある日、reg-suit が おかしな差分を検知するようになったんです
様子がおかしくなったのは dependabot で とある Pull Request が作られたとき
None
None
None
パッケージアップデートの Pull Request で 差分が出ることは「まれによくある」
実際に差分を見てみましょう
None
詳細を見てみましょう
None
None
None
None
もう1つ詳細を見てみましょう
None
None
None
None
None
なるほど、わからん
Release notes を見てみよう
None
None
config.matchingThreshold が未定義の場合に 差異を抑制するバグを修正しました
None
なるほど
regconfig.json を見てみよう
None
matchingThreshold 無いねぇ
つまり、今まで抑制されていた差分が Bug fix によって顕在化したってこと?
とりあえず merge してみて様子を見よう
None
None
eslint のプラグインのアップデートで コンポーネントの差分でるのは流石におかしいねぇ
他の Pull Request でも意図していない差分が 検知されてノイズになっちゃってるねぇ
None
直そう
とりあえず reg-suit の設定を見直そう
もう一度 regconfig.json を見てみよう
None
reg-suit の README を見てみよう
None
thresholdRate
全体に対する差異が発生したピクセル数の比率のしきい値。 0か ら1の範囲である必要があります。
これがあやしい
今まで thresholdRate: 0 というとても厳しい「しきい値」で差分の検知を していたけど、バグで差分が出てこなかったのでは
None
None
意図していない差分が出なくなった!
🎉
運用する中でのひとコマをお届けしましたが
VRT はいいぞ - コンポーネントの変更によって生じる差分が意図的なものかど うかが、ひと目で判断できるので安心感がある - story を書かないと VRT が出来ないので
Storybook のメンテ ナンスのモチベーションになる - thresholdRate は適切な値を設定しよう - 今回の小話が VRT をしている/しようとしている誰かの知見に なればなぁ
ご清聴ありがとうございました!