Loading…
December 11-12 | Montreal, Canada
View More Details  & Register Here
Thursday, December 12 • 10:20am - 10:50am
Rethinking JavaScript Test Coverage - Benjamin Coe, Google

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
In 2017 the V8 engine introduced built-in code coverage; the ability, during runtime, to track the executed lines, branches, functions, etc., of a program. This information is useful for: analyzing bottlenecks, finding unused code, and finding parts of a codebase that need more tests.

Realizing how valuable native coverage could be to the community, Ben made it a mission to expose this functionality in Node.js.

In JavaScript coverage had traditionally been facilitated by a clever hack; tools, like Istanbul, parse the code inserting no-op counters... While this parsing-based approach works, it has shortcomings: as the language evolves, parsers play catch up; counters decrease performance; counters sometimes break applications.

Implementing native coverage in Node.js, was an amazing opportunity for V8, Node.js, and the npm community to work together, and is an exciting success story.

Speakers
avatar for Benjamin Coe

Benjamin Coe

Senior Engineer, Google
Ben was the third employee at npm, Inc, where he became involved with open-source and the Node.js community. Ben maintains the open source library yargs, is a collaborator on Node.js, and contributes to other projects, such as v8. Ben currently works on the client libraries team at... Read More →



Thursday December 12, 2019 10:20am - 10:50am EST
513EF
  Testing and Tools