~/talk

Treat test code as application code by linting

Talkat SeleniumConf London 2019 · 2019-10-07..10-08· [testing, developer-experience]
name:Kwo Ding
links:none on file
slides:none on file

Argues that treating test code like production code and linting it improves maintainability and reduces flakiness, and demonstrates Java/JavaScript stats (Java 66% prefer spaces, JavaScript ~80% prefer four spaces, quotes ~50/50). Uses ESLint (Airbnb), Checkstyle, SonarQube plus a custom Sonar webdriver plugin and a protractor ESLint plugin, runnable in IDE, CLI and CI. The Sonar plugin scans test sources and successfully flags hard sleeps, missing assertions, bad locators, empty catches, and actions without perform.

AI-written summary · about

  1. 0:00Start
  2. 0:46What Is Linting
  3. 1:52Why Do We Want Static Code Analysis Code
  4. 5:05Line Length
  5. 7:24What Does It Mean for Test Code
  6. 19:00Webdriver Plugin
  7. 26:12Key Takeaways
~/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.