Help wanted to reach ~100% code coverage
See original GitHub issueAs discussed in #1374 and elsewhere, our current milestone is to reach close to 100% coverage on the beta
branch. With 100% test coverage, the tests take on a life of their own in maintaining the project, and will allow us to refactor – and add functionality – with confidence.
@jlilja, @gr2m and I conducted a line-by-line triage and added 46 comments marked TODO-coverage
in #1375 and #1380. These are all the spots in the code where work on this milestone is needed.
As of right now we’re down to 40, so we’re 13% of the way there!
You can help!
- Look in the
beta
branch forTODO-coverage
. - Pick a todo or a file to start working on.
- Post here, so we don’t duplicate any work.
- When you’re ready, open your pull request on the
beta
branch.
One bit of guidance: our test strategy is to avoid narrow-bracket tests, and instead aim to keep writing high-level functional tests (i.e. via calls to nock()
). If there is not a way to exercise the code through the public nock
API, it may be dead code. In the case of dead code, it’s better to remove it than to add tests.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:21 (19 by maintainers)
Thank you so much, @paulmelnikow! I’ll grab a couple. Perhaps we should schedule another open source friday hackathon, too?
WOW OMG WOW GREAT WORK @paulmelnikow & @mastermatt 💐🏅💐🏅