~/talk

Deep into Ruby Code Coverage

Talkat RubyKaigi 2018 · 2018-05-31..06-02· [testing, ruby]
links:none on file
slides:none on file

DeepCover adds node coverage and stricter branch coverage to Ruby tests by parsing source with the parser gem, rewriting code to insert runtime trackers, and emitting HTML reports. It finds real gaps: ActiveSupport loses edge-case tests, some projects drop from 100% to ~96% node or to ~77% branch coverage, and a compact codebase yields three confirmed bugs. It runs slower than MRI’s builtin coverage but integrates on CI via require/load rewriting, iseq_load, or offline rewriting.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 0:49What is code coverage?
  3. 3:15Method vs line vs node coverage
  4. 7:10Branch coverage explained
  5. 8:34Why code coverage matters
  6. 9:21Introducing Deep Cover
  7. 10:46Deep Cover demo and report
  8. 13:43Real-world examples from Active Support
  9. 15:51Deep Cover vs MRI coverage
  10. 17:17Deep Cover takeover of built-in coverage
  11. 19:04How code coverage works under the hood
  12. 27:09Implementing Deep Cover in Ruby
  13. 31:26Control flow interruption cases
  14. 36:26Future of Deep Cover and reporting
  15. 37:52Acknowledgments and thanks
  16. 38:13Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.