New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help wanted to reach ~100% code coverage #1404
Comments
I am no longer working in this file. I got through a lot of the header code, which is what prompted the umbrella |
I just tackled the last one in |
@gr2m Do you want to finish the one in |
Please take it if you can, I won’t get to it before our vacation next week |
After the open PRs are merged, these are the coverage TODOs that are left:
That's 54% of the way done! I may pick up one or two of these, though TBH I've gone about as far as I want to with this. If anyone else is interested in working on these, help would be really appreciated! They tend to be good puzzles! |
Thank you so much, @paulmelnikow! I'll grab a couple. Perhaps we should schedule another open source friday hackathon, too? |
That sounds good! |
For #1404 (code coverage) We were doing this logic in several places and not always getting good coverage. Adds a small utility DRY things up.
For #1404 Add tests for the success, reject, and ignore cases.
For #1404 * test(socket): add coverage for timeout without a callback
We've hit 100% coverage! Coveralls is mostly useful for growing coverage over time. I think the text report is adequate for finding gaps in feature branches and preventing us from slipping. I don't think it's worth running Coveralls anymore. I replaced the coverage badge with a static one! Closes #1404
Unable to find a way to trigger the conditionals. See #1404 for reasoning why I took on this test.
I worked on this file quite a bit since this comment was written. At this point the remaining work can be broken out into separate, manageable-seeming todos. Ref #1404
Ref #1404 (comment) This leaves intact two missed coverage spots in `lib/recorder.js` which are being taken care of in #1588. Also ref #1607
* refactor(common): replace lodash.forOwn with Array.reduce This commit replaces usage of lodash.forOwn with a combination of Object.keys() & Array.reduce. Related #1285 * refactor(commong): use Array.map This commit simplifies array formatting by using Array.map instead of a plain for loop. * test(common): add unit test coverage for #formatQueryValue This commit adds unit test coverage for #formatQueryValue. Related #1404 * chore: run prettier to fix lint errors * fix: use Object.entries() in favor of Object.keys() This commit replaces the usage of Object.keys() with Object.entries() to address [this](#1598 (comment)) comment. * test(common): break down tests This commit addresses the following comments: 1- #1598 (comment) 2- #1598 (comment) * chore: run prettier to fix lint errors * refactor(common): replace lodash.forOwn with Array.reduce This commit replaces usage of lodash.forOwn with a combination of Object.keys() & Array.reduce. Related #1285 * refactor(commong): use Array.map This commit simplifies array formatting by using Array.map instead of a plain for loop. * test(common): add unit test coverage for #formatQueryValue This commit adds unit test coverage for #formatQueryValue. Related #1404 * chore: run prettier to fix lint errors * fix: use Object.entries() in favor of Object.keys() This commit replaces the usage of Object.keys() with Object.entries() to address [this](#1598 (comment)) comment. * test(common): break down tests This commit addresses the following comments: 1- #1598 (comment) 2- #1598 (comment) * chore: run prettier to fix lint errors * chore: remove unnecessary formatting changes
For #1404 (code coverage) We were doing this logic in several places and not always getting good coverage. Adds a small utility DRY things up.
For #1404 Add tests for the success, reject, and ignore cases.
For #1404 * test(socket): add coverage for timeout without a callback
We've hit 100% coverage! Coveralls is mostly useful for growing coverage over time. I think the text report is adequate for finding gaps in feature branches and preventing us from slipping. I don't think it's worth running Coveralls anymore. I replaced the coverage badge with a static one! Closes #1404
Unable to find a way to trigger the conditionals. See #1404 for reasoning why I took on this test.
I worked on this file quite a bit since this comment was written. At this point the remaining work can be broken out into separate, manageable-seeming todos. Ref #1404
Ref #1404 (comment) This leaves intact two missed coverage spots in `lib/recorder.js` which are being taken care of in #1588. Also ref #1607
* refactor(common): replace lodash.forOwn with Array.reduce This commit replaces usage of lodash.forOwn with a combination of Object.keys() & Array.reduce. Related #1285 * refactor(commong): use Array.map This commit simplifies array formatting by using Array.map instead of a plain for loop. * test(common): add unit test coverage for #formatQueryValue This commit adds unit test coverage for #formatQueryValue. Related #1404 * chore: run prettier to fix lint errors * fix: use Object.entries() in favor of Object.keys() This commit replaces the usage of Object.keys() with Object.entries() to address [this](#1598 (comment)) comment. * test(common): break down tests This commit addresses the following comments: 1- #1598 (comment) 2- #1598 (comment) * chore: run prettier to fix lint errors * refactor(common): replace lodash.forOwn with Array.reduce This commit replaces usage of lodash.forOwn with a combination of Object.keys() & Array.reduce. Related #1285 * refactor(commong): use Array.map This commit simplifies array formatting by using Array.map instead of a plain for loop. * test(common): add unit test coverage for #formatQueryValue This commit adds unit test coverage for #formatQueryValue. Related #1404 * chore: run prettier to fix lint errors * fix: use Object.entries() in favor of Object.keys() This commit replaces the usage of Object.keys() with Object.entries() to address [this](#1598 (comment)) comment. * test(common): break down tests This commit addresses the following comments: 1- #1598 (comment) 2- #1598 (comment) * chore: run prettier to fix lint errors * chore: remove unnecessary formatting changes
For #1404 (code coverage) We were doing this logic in several places and not always getting good coverage. Adds a small utility DRY things up.
For #1404 Add tests for the success, reject, and ignore cases.
For #1404 * test(socket): add coverage for timeout without a callback
We've hit 100% coverage! Coveralls is mostly useful for growing coverage over time. I think the text report is adequate for finding gaps in feature branches and preventing us from slipping. I don't think it's worth running Coveralls anymore. I replaced the coverage badge with a static one! Closes #1404
As 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!
beta
branch forTODO-coverage
.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 publicnock
API, it may be dead code. In the case of dead code, it's better to remove it than to add tests.The text was updated successfully, but these errors were encountered: