100% Automated Test Coverage is like stepping on every step on the way to the top. Photo by Jyoti Singh on Unsplash

Member-only story

The Problem With 100% Unit Test Coverage

Kris Raven
4 min readDec 30, 2020

--

All the code can be found on Github.

The Code and the Unit Tests

The code shown in the Gists below (called moreCakes.test.js) is using Jest. They cover the example code (moreCakes.js), which uses NodeJS.

If you’re interested in playing around with this, the code is available here. The first example is in the master branch. The branch called extended-tests is the second example.

--

--

Kris Raven
Kris Raven

Written by Kris Raven

Quality Engineering Manager | A wholesome mix of QA, Automated Testing, music and philosophy | Enjoys unit tests | Favours integration tests

No responses yet