~/talk

Rethinking JavaScript Test Coverage

Talkat Node+JS Interactive 2019 · 2019-12-11..12-12· [javascript, testing]
links:none on file
slides:none on file

Node gains native runtime coverage via V8 built-in coverage exposed through an env var and turned into readable reports by c8 or NYC. Instrumentation-free collection runs about three to four times faster than transpile-and-rewrite on the Node core. Nightly combined Windows+Linux reports reveal hotspots and gaps (examples: a line hit 22,300 times, a test run example rising from 50% to 100%), and the system is already used to guide contributions.

AI-written summary · about

  1. 0:00Intro
  2. 1:49Today I'm talking about Code Coverage
  3. 2:32What is code coverage?
  4. 4:18What's happened since 1962?
  5. 5:22Coverage tools in Node.js
  6. 6:59What is code coverage ?
  7. 11:50It's not just about writing tests
  8. 12:46How code coverage works?
  9. 13:38Adding counters to code
  10. 15:24Enabling coverage in the VM
  11. 20:28How can I set sail on this coverage train?
  12. 24:05Goodbye everybody
~/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.