We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for configuring various options of different Istanbul reporters. This applies to both @vitest/coverage-c8 and @vitest/coverage-istanbul.
@vitest/coverage-c8
@vitest/coverage-istanbul
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/276d95e4304b3670eaf6e8e5a7ea9e265a14e338/types/istanbul-reports/index.d.ts
Reporters have various options that solve different issues, e.g. using relative paths in monorepo setups: #1902 (comment).
Similar API as Jest has https://jestjs.io/docs/configuration#coveragereporters-arraystring--string-options.
Vitest's documentation could look like this:
reporter Type: string | string[] | [string, {}][] Default: ['text', 'html', 'clover', 'json'] Available for providers: 'c8' | 'istanbul' CLI: --coverage.reporter=<reporter>, --coverage.reporter=<reporter1> --coverage.reporter=<reporter2> Coverage reporters to use. See istanbul documentation for detailed list of all reporters. See @types/istanbul-reporter for details about reporter specific options. The reporter has three different types: A single reporter: { reporter: 'html' } Multiple reporters without options: { reporter: ['html', 'json'] } A single or multiple reporters with reporter options: { reporter: [ ['lcov', { 'projectRoot': './src' }], ['json', { 'file': 'coverage.json' }], ['text'] ] }
string | string[] | [string, {}][]
['text', 'html', 'clover', 'json']
'c8' | 'istanbul'
--coverage.reporter=<reporter>
--coverage.reporter=<reporter1> --coverage.reporter=<reporter2>
Coverage reporters to use. See istanbul documentation for detailed list of all reporters. See @types/istanbul-reporter for details about reporter specific options.
@types/istanbul-reporter
The reporter has three different types:
{ reporter: 'html' }
{ reporter: ['html', 'json'] }
{ reporter: [ ['lcov', { 'projectRoot': './src' }], ['json', { 'file': 'coverage.json' }], ['text'] ] }
No response
[email protected]
The text was updated successfully, but these errors were encountered:
AriPerkkio
Successfully merging a pull request may close this issue.
Clear and concise description of the problem
Add support for configuring various options of different Istanbul reporters. This applies to both
@vitest/coverage-c8
and@vitest/coverage-istanbul
.https://github.com/DefinitelyTyped/DefinitelyTyped/blob/276d95e4304b3670eaf6e8e5a7ea9e265a14e338/types/istanbul-reports/index.d.ts
Reporters have various options that solve different issues, e.g. using relative paths in monorepo setups: #1902 (comment).
Suggested solution
Similar API as Jest has https://jestjs.io/docs/configuration#coveragereporters-arraystring--string-options.
Vitest's documentation could look like this:
Alternative
No response
Additional context
[email protected]
.Validations
The text was updated successfully, but these errors were encountered: