rpl / flow-coverage-report

Generate flow coverage reports in JSON, HTML and in the console.
MIT License
505 stars 42 forks source link

doesn't output any files #160

Open kevinbarabash opened 6 years ago

kevinbarabash commented 6 years ago

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.

rpl commented 6 years ago

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).

augbog commented 6 years ago

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?