Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
typescript-coverage-report
Advanced tools
Node command line tool for generating TypeScript coverage reports ✨
This package fills the gap of a missing type coverage reporting tool which is present in the Flow ecosystem, strongly inspired by the amazing work done by flow-coverage-report
and using data generated by type-coverage
.
To learn more about the reasoning behind this project and its roadmap, please refer to the following article: How I built a TS coverage report tool
typescript-coverage-report
can be installed locally or globally.
Users are advised to install it as a project (dev) dependency and create a script in package.json
.
$ yarn add --dev typescript-coverage-report
# OR
$ npm install --save-dev typescript-coverage-report
If installed locally, add the following to the scripts section of package.json
.
"scripts": {
"ts-coverage": "typescript-coverage-report"
}
Then run:
$ yarn ts-coverage
# OR
$ npm run ts-coverage
To set the minimum threshold (80% by default), use the --threshold
option.
$ yarn ts-coverage --threshold=99
As an alternative, options may be provided through the type-coverage
configuration, specified in package.json
.
"typeCoverage": {
"atLeast": 90
}
The CLI accepts a list of arguments:
Option | Description | Default value |
---|---|---|
-t, --threshold [number] | The minimum percentage of coverage required. | 80 |
-o, --outputDir [string] | The output directory where to generate the report. | coverage-ts |
-s, --strict [boolean] | Run the check in strict mode. | false |
-d, --debug [boolean] | Show debug information. | false |
Feel free to dive in! Open an issue or submit PRs.
On this project we follow the Contributor Covenant Code of Conduct.
Thanks goes to these wonderful people (emoji key):
David Tsai 📖 🐛 |
This project follows the all-contributors specification. Contributions of any kind welcome!
This project follows the Angular commit messages, but it's very open to emojis 🤯.
MIT @ Alessandro Canessa
FAQs
Node command tool to generate TypeScript coverage report.
The npm package typescript-coverage-report receives a total of 26,078 weekly downloads. As such, typescript-coverage-report popularity was classified as popular.
We found that typescript-coverage-report demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.