
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
@rayyan98/coverage-on-diff
Advanced tools
A tool to get code coverage on new lines added based on a diff
Continuation of coverage-on-diff
A tool that uses an instanbul json code coverage report and git diff to calculate the code coverage on new lines added
npm i coverage-on-diff --save-dev
terminal > ./coverageOnDiff --help
Run diff against current code coverage
Usage: cli.js -d [file]
Options:
--version Show version number [boolean]
--diff, -d diff file to compare code coverage to [string] [required]
--coverage, -c instanbul json code coverage report to use against diff
[string] [default: "./coverage/coverage-final.json"]
--path, -p relative root dir for code coverage
[string] [default: "./"]
--report, -r type of report
[array] [choices: "text", "text-summary"] [default: "text-summary"]
--stmt, -s percentage threshold for stmt coverage [number] [default: 80]
--branch, -b percentage threshold for branch coverage [number] [default: 0]
--ignore, -i ignore threshold checks [boolean]
--help Show help [boolean]
The final report will look similar to below:
text-summary view
./coverageOnDiff -d ~/dev/branch.diff
text view
./coverageOnDiff -d ~/dev/branch.diff -r text
Threshold test will run by default with 80% statement coverage and 0% branch coverage
FAQs
A tool to get code coverage on new lines added based on a diff
The npm package @rayyan98/coverage-on-diff receives a total of 2,083 weekly downloads. As such, @rayyan98/coverage-on-diff popularity was classified as popular.
We found that @rayyan98/coverage-on-diff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.