~/talk

How to set up a pipeline with visual unit tests for your app

Talkat RS Conf 2019 · 2019-08-09..08-11· [testing]
slides:none on file

Shows how to get deterministic visual unit tests for React by rendering components to HTML and comparing image buffers rather than full end-to-end runs, using Jest and Puppeteer with JSDOM and image-snapshot integration, attaching results to Allure report, and running a CI-driven pipeline on CircleCi and GitHub that keeps baselines owned by CI and requires an approval job to update them. Screenshots render in ~350ms, 100 comparisons take ~20s, 300 generated baselines run in <24s, and excluded zones or CSS overrides handle real-device noise (BrowserStack optional).

AI-written summary · about

  1. 0:00Intro
  2. 0:30About The Sun
  3. 0:56What is The Sun
  4. 1:09What are visual unit tests
  5. 2:20Why do we need such tests
  6. 2:57TestRunner
  7. 3:35Reporting plugin
  8. 3:55Interactive demo
  9. 4:25Dont rush
  10. 4:39Common scenario
  11. 5:26Implementation
  12. 7:19Plugins
  13. 8:32Configuration
  14. 10:09Environment
  15. 10:24Global Setup
  16. 11:19Screenshot Helper
  17. 11:41Examples
  18. 12:29Performance
  19. 14:05Browser
  20. 14:31WebDriver
  21. 17:19Problems
  22. 18:43Setup test environment file
  23. 19:07Update snapshots manually
  24. 20:35Create additional job
  25. 21:12Demo
  26. 23:58Easter eggs
  27. 24:09Disable animations
  28. 25:56Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.