Loading…
Attending this event?
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 and see who's attending!

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
BC

Benjamin Coe

Developer Programs Engineer, Google
Ben was the third employee at npm, Inc, where he became involved with open-source and the Node.js community.During his tenure at npm, Ben took over maintenance of the yargs CLI library, wrote the nyc test coverage tool, and began working on Node.js as a collaborator.Ben currently... Read More →


Thursday December 12, 2019 10:20am - 10:50am
513EF
Feedback form isn't open yet.

Attendees (16)