Skip to content
New issue

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

doesn't output any files #160

Open
kevinbarabash opened this issue Jul 7, 2018 · 2 comments
Open

doesn't output any files #160

kevinbarabash opened this issue Jul 7, 2018 · 2 comments

Comments

@kevinbarabash
Copy link

kevinbarabash commented Jul 7, 2018

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
Copy link
Owner

rpl commented Jul 7, 2018

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:

"flow-coverage-report": {
"globIncludePatterns": [
"src/lib/**/*.js",
"src/lib/**/*.jsx"
],
"reportTypes": [
"text",
"html",
"json",
"badge"
]
},
).

@augbog
Copy link

augbog commented Jul 16, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants