🛠️ Repo: Increase unit test coverage #3601
Labels
area: repository tooling
concerning ease of contribution
status: accepting prs
Mocha can use your help with this one!
counting our integration tests, our coverage is hovering around 90% at time of writing.
...but if we're just looking at unit test coverage, it's only about 50%. 😬
Two parts to this:
Set up Mocha to compute unit test coverage in isolation
Create a script (
package-scripts.js
) and/or configure nyc (.nycrc
) to easily compute unit test coverageDon't include stuff that we can't unit test reasonably within the count. If it isn't
require
'd by anything, that's a hint. If the coverage doesn't stand at about 50%, then too much is getting counted.This may necessitate two separate setups for browser and Node.js. Just figure out Node.js for this issue; see 🛠️ Repo: Increase browser coverage #2532 if you want to figure out how to compute browser coverage
Write moar tests (in
test/unit/
)The text was updated successfully, but these errors were encountered: