Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
lcov-total
Advanced tools
Parsing lcov.info and returning total of the summary intended to use inside CI to exit if threshold not reach
Weekly downloads
Readme
This module now uses ESM modules from
v2.0.0
, if you need to use CommonJS refer tov1.x.x
This simple package aim to parse lcov.info
files and provide the total coverage Number
without fancy formatting or anything else, either in stdout or programmatically.
Here's why:
awk
chainsYou can install locally
npm install lcov-total
You can install glocally
npm install -g lcov-total
Or use NPX
npx lcov-total
You can use lcov-total
from command line providing lcov.info
file location eg:
npx lcov-total lcov.info
# 100.00
If you pass the --gte=value
flag you will get an exitCode 0 or 1 based on resulting coverage >= value
expression, eg:
npx lcov-total lcov.info --gte=90
echo $?
# 0
Or programmatically
import lcovTotal from "lcov-total";
lcovTotal("/path/to/lcov.info"); // this throws if any error
Project is pretty simple and straight forward for what is my needs, but if you have any idea you're welcome.
This projects uses commitlint with Angular configuration so be sure to use standard commit format or PR won't be accepted.
git checkout -b feature/AmazingFeature
)git commit -m 'feat(scope): some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE
for more information.
Simone Corsi - @im_simonecorsi
FAQs
Parsing lcov.info and returning total of the summary intended to use inside CI to exit if threshold not reach
The npm package lcov-total receives a total of 2,853 weekly downloads. As such, lcov-total popularity was classified as popular.
We found that lcov-total 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.