flow-coverage-report icon indicating copy to clipboard operation
flow-coverage-report copied to clipboard

doesn't output any files

Open kevinbarabash opened this issue 7 years ago • 2 comments

I ran the following command:

./node_modules/.bin/flow-coverage-report \\
-f ./node_modules/.bin/flow \\
-i 'packages/wonder-blocks-*/**/*.js' \\
-x 'packages/wonder-blocks-*/dist/*.js' -x '**/generated-snapshot.test.js' \\
-o "./flow-coverage"

and it prints out the coverage but doesn't store the output anywhere. The -o seems redundant since "./flow-coverage" is the default so I tried with and without that parameter with the same results.

kevinbarabash avatar Jul 07 '18 19:07 kevinbarabash

Hi @kevinbarabash The default report type is "text", which will produce the coverage report on the console, but do not generate the html report or any other file locally.

To generate the html report you have to explicitly ask for its report type on the command line (e.g. by running: flow-coverage-report -t text -t html ...) or from one of the supported configuration sources (e.g. from the package.json file as used in this repository: https://github.com/rpl/flow-coverage-report/blob/5a72d56bcc661d00ce698915845e6e55fd93ecf1/package.json#L164-L175).

rpl avatar Jul 07 '18 19:07 rpl

to clarify is reportTypes the proper key? In the README, it says to use types.

Also it looks like globIncludePatterns and includeGlob are interchangeable? Maybe there can be docs regarding the options that should be passed?

augbog avatar Jul 16 '18 23:07 augbog