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
Visual regression testing - move fast and try n...
Search
Daniel Furze
September 27, 2016
Technology
0
670
Visual regression testing - move fast and try not to break things
My slides on automating visual regression testing, from Front End North 2016.
Daniel Furze
September 27, 2016
Tweet
Share
More Decks by Daniel Furze
See All by Daniel Furze
My First Progressive Webapp
furzeface
0
57
ES-What?!
furzeface
0
220
CSS - with speaker notes
furzeface
1
120
CSS
furzeface
1
210
The Lean Studio
furzeface
1
42
Don't be scared of open source!
furzeface
1
34
Other Decks in Technology
See All in Technology
品質視点から考える組織デザイン/Organizational Design from Quality
mii3king
0
160
Platform開発が先行する Platform Engineeringの違和感
kintotechdev
4
540
AWSで推進するデータマネジメント
kawanago
1
1.2k
エラーとアクセシビリティ
schktjm
1
1.2k
職種の壁を溶かして開発サイクルを高速に回す~情報透明性と職種越境から考えるAIフレンドリーな職種間連携~
daitasu
0
140
Snowflakeの生成AI機能を活用したデータ分析アプリの作成 〜Cortex AnalystとCortex Searchの活用とStreamlitアプリでの利用〜
nayuts
1
460
【実演版】カンファレンス登壇者・スタッフにこそ知ってほしいマイクの使い方 / 大吉祥寺.pm 2025
arthur1
1
640
会社紹介資料 / Sansan Company Profile
sansan33
PRO
6
380k
Agile PBL at New Grads Trainings
kawaguti
PRO
1
380
シークレット管理だけじゃない!HashiCorp Vault でデータ暗号化をしよう / Beyond Secret Management! Let's Encrypt Data with HashiCorp Vault
nnstt1
3
230
共有と分離 - Compose Multiplatform "本番導入" の設計指針
error96num
1
330
企業の生成AIガバナンスにおけるエージェントとセキュリティ
lycorptech_jp
PRO
2
150
Featured
See All Featured
RailsConf 2023
tenderlove
30
1.2k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
GraphQLとの向き合い方2022年版
quramy
49
14k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
51
5.6k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Producing Creativity
orderedlist
PRO
347
40k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.4k
Code Review Best Practice
trishagee
70
19k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Transcript
Move fast and try not to break things Visual Regression
Testing @furzeface bit.ly/df-vrt-slides
@furzeface bit.ly/df-vrt-slides Move fast and try not to break things
Visual Regression Testing
@furzeface bit.ly/df-vrt-slides "Regression testing is a method of software testing
that checks functionality that already exists against new changes that have been made to a codebase, to catch regressions." (Thanks, Wikipedia!) What?!
@furzeface bit.ly/df-vrt-slides Why?
@furzeface bit.ly/df-vrt-slides CSS is hard
@furzeface bit.ly/df-vrt-slides Testing is boring (sorry)
@furzeface bit.ly/df-vrt-slides When?
@furzeface bit.ly/df-vrt-slides Where? Test ALL the things???
@furzeface bit.ly/df-vrt-slides How? Sounds like hard work…
@furzeface bit.ly/df-vrt-slides How? Pick some software BackstopJS PhantomCSS OcularJS CSS
Critic Galen
@furzeface bit.ly/df-vrt-slides How? Install npm install phantomjs casperjs -g npm
install --save-dev backstopjs (requires Python)
@furzeface bit.ly/df-vrt-slides How? Generate a config npm explore backstopjs --
npm run genConfig
@furzeface bit.ly/df-vrt-slides How? Generate a config "scenarios": [ { "label":
"Styleguide", "url": "http://localhost:3000/styleguide", "selectors": [ "body", ".site-header", ".article", ".site-footer" ] } ] backstop.json
@furzeface bit.ly/df-vrt-slides How? Generate reference screenshots npm explore backstopjs --
npm run reference
@furzeface bit.ly/df-vrt-slides How? Generate reference screenshots
@furzeface bit.ly/df-vrt-slides Break your CSS How?
@furzeface bit.ly/df-vrt-slides
@furzeface bit.ly/df-vrt-slides How? Test npm explore backstopjs -- npm run
test
@furzeface bit.ly/df-vrt-slides
@furzeface bit.ly/df-vrt-slides
@furzeface bit.ly/df-vrt-slides
@furzeface bit.ly/df-vrt-slides How? Fix and re-test
@furzeface bit.ly/df-vrt-slides How? Bonus automation "scripts": { "bless": "npm explore
backstopjs -- npm run bless", "openReport": "npm explore backstopjs -- npm run openReport", "reference": "npm explore backstopjs -- npm run reference", "test": "npm explore backstopjs -- npm run test" } package.json
@furzeface bit.ly/df-vrt-slides Who? Everyone! Front-end developer Back-end developer Designer QA
engineer
@furzeface bit.ly/df-vrt-slides Summary Hurry up! Straightforward set up Peace of
mind Works for many people Improve confidence
@furzeface bit.ly/df-vrt-slides Thanks! You rock.
@furzeface bit.ly/df-vrt-slides Blog post bit.ly/df-vrt GitHub demo bit.ly/df-vrt-demo Slides/Transcript bit.ly/df-vrt-slides
Feedback bit.ly/df-vrt-feedback Further reading