plantain-00 / type-coverage

A CLI tool to check type coverage for typescript code
MIT License
1.25k stars 44 forks source link

Support for type coverage broken down by file #36

Closed mattdarveniza closed 4 years ago

mattdarveniza commented 5 years ago

Hi there, this package is really useful, but I was wondering: are there any plans to record or expose the coverage broken down by file, rather than just a flat top-level metric?

I had a peek at how the coverage checking is done in core.js and it looks like it would be pretty straightforward to retain the per-file coverage metrics and return those on result if I'm not misunderstanding. Would you be open to a PR that recorded and returned per-file results if a flag is given?

plantain-00 commented 5 years ago

Yes, PR is welcome.

plantain-00 commented 5 years ago

It should be available in v2.3.0

mattdarveniza commented 5 years ago

Thanks so much!

alexcanessa commented 4 years ago

@mattdarveniza @plantain-00 I just released https://github.com/alexcanessa/typescript-coverage-report, that uses this package to collect data.

plantain-00 commented 4 years ago

@alexcanessa Nice tool, I just added a link to the tool: https://github.com/plantain-00/type-coverage/pull/45