All Projects → alexcanessa → Typescript Coverage Report

alexcanessa / Typescript Coverage Report

Licence: mit
Node command tool to generate TypeScript coverage report

Programming Languages

typescript
32286 projects
ts
41 projects

Projects that are alternatives of or similar to Typescript Coverage Report

javadoc-coverage
A Doclet to generate JavaDoc coverage reports ☕️🧪📗
Stars: ✭ 23 (-83.33%)
Mutual labels:  coverage, coverage-report
mutant-swarm
Mutation testing framework and code coverage for Hive SQL
Stars: ✭ 20 (-85.51%)
Mutual labels:  coverage, coverage-report
enterprise
Code coverage done right.® On-premise enterprise version.
Stars: ✭ 63 (-54.35%)
Mutual labels:  coverage, coverage-report
Bashcov
Code coverage tool for Bash
Stars: ✭ 113 (-18.12%)
Mutual labels:  coverage, coverage-report
Simplecov
Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
Stars: ✭ 4,362 (+3060.87%)
Mutual labels:  coverage, coverage-report
jacoco-badge-generator
Coverage badges, and pull request coverage checks, from JaCoCo reports in GitHub Actions
Stars: ✭ 53 (-61.59%)
Mutual labels:  coverage, coverage-report
goverreport
Command line tool for coverage reporting and validation
Stars: ✭ 44 (-68.12%)
Mutual labels:  coverage, coverage-report
unitest
🌎 Seamless node and browser unit testing with code coverage
Stars: ✭ 28 (-79.71%)
Mutual labels:  coverage, coverage-report
Covr
Test coverage reports for R
Stars: ✭ 285 (+106.52%)
Mutual labels:  coverage, coverage-report
frankencover.it
Code coverage for iOS and OSX.
Stars: ✭ 102 (-26.09%)
Mutual labels:  coverage, coverage-report
Codacy Coverage Reporter
Multi-language coverage reporter for Codacy
Stars: ✭ 96 (-30.43%)
Mutual labels:  coverage, coverage-report
Gcovr
generate code coverage reports with gcc/gcov
Stars: ✭ 482 (+249.28%)
Mutual labels:  coverage, coverage-report
Codecov Python
Python report uploader for Codecov
Stars: ✭ 162 (+17.39%)
Mutual labels:  coverage, coverage-report
react-testing-mocha-chai-enzyme
A solid test setup for React components with Mocha, Chai, Sinon, Enzyme in a Webpack/Babel application.
Stars: ✭ 48 (-65.22%)
Mutual labels:  coverage, coverage-report
LocalCoverage.jl
Trivial functions for working with coverage for packages locally.
Stars: ✭ 55 (-60.14%)
Mutual labels:  coverage, coverage-report
Xcov
Nice code coverage reporting without hassle
Stars: ✭ 467 (+238.41%)
Mutual labels:  coverage, coverage-report
Gogradle
A Gradle Plugin Providing Full Support for Go
Stars: ✭ 712 (+415.94%)
Mutual labels:  coverage, coverage-report
Unittesting
Testing Sublime Text Packages
Stars: ✭ 95 (-31.16%)
Mutual labels:  coverage-report
Courtney
Courtney is a coverage tool for Go
Stars: ✭ 92 (-33.33%)
Mutual labels:  coverage
Example Swift
Codecov: Swift coverage example
Stars: ✭ 121 (-12.32%)
Mutual labels:  coverage

TypeScript Coverage Report

npm version npm downloads standard-readme compliant MIT Licence Automated Release Notes by gren

All Contributors

Node command line tool for generating TypeScript coverage reports ✨

Overview

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.

See an example of the coverage report.

Background

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

Install

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

Usage

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
}

terminal table

summary page

details page

Options

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
-c, --cache [boolean] Save and reuse type check result from cache. false
-i, --ignore-files [boolean] Ignore specified files, eg: --ignore-files "demo1/*.ts" --ignore-files "demo2/foo.ts" false
-u, --ignore-unread [boolean] Allow writes to variables with implicit any types false

Maintainers

@alexcanessa

Contributing

Feel free to dive in! Open an issue or submit PRs.

On this project we follow the Contributor Covenant Code of Conduct.

Developing

Thanks for contributing!

Remember to run the following commands to link your version of this package and build the TypeScript files.

# Link the package globally, so you'll be able to test it in other projects.
$ yarn link
# Builds the TypeScript files and watches for changes
$ yarn build --watch

Contributors ✨

Thanks goes to these wonderful people (emoji key):


David Tsai

📖 🐛

Alexis Tyler

🐛

Dan Vanderkam

💻

Daniel Edholm Ignat

💻

Kyℓe Hensel

💻

Danilo Cabello

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Commit messages

This project follows the Angular commit messages, but it's very open to emojis 🤯.

Licence

MIT @ Alessandro Canessa

forthebadge

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].