~/talk

Who Guards the Guards? – Finding Bugs in Your Tests

Talkat TestJS Summit 2021 · 2021-11-18..11-19· [testing, developer-experience]
slides:none on file

Three concrete testing bugs and how static analysis finds them: tests that silently have no assertion, expectations written with swapped actual/expected values, and incomplete expectations that never call an assertion, all shown against Mocha/Chai examples from Kibana, Angular and eslint. VS Code with the SonarLint extension flags the exact lines and messages; SonarQube/SonarCloud run the same rules in CI, highlighting the failing pattern and the minimal code change needed to make the test meaningful.

AI-written summary · about

  1. 0:00Start
  2. 0:39Expect the Unexpected
  3. 1:25Well, actually, order matters!
  4. 3:16Assertion, please!
~/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.