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

[bug] coverage no longer report in terminal #412

Open
anewstead opened this issue Dec 4, 2023 · 2 comments
Open

[bug] coverage no longer report in terminal #412

anewstead opened this issue Dec 4, 2023 · 2 comments

Comments

@anewstead
Copy link

Describe the bug
not printing test report results table in the console.
test-runner 0.13.0 results print to terminal as expected
test-runner 0.13.1-next.2 results do not print to terminal
test-runner 0.16.0 results do not print to terminal

To Reproduce
install relevant test runner and run against a sample test
npm test-storybook --coverage

Expected behavior
should print coverage results to terminal

Additional context
noticed when upgrade all storybook packages 7.4.6 > 7.6.3
installing backward test-runner releases issue seems to have been introduced at 0.13.1-next.2

@rfreydi
Copy link

rfreydi commented Dec 20, 2023

Same observation on my project.
It look like it is a regression of a fix in the v0.12.0 corrected by @yannbf in #332

@designbyadrian
Copy link

designbyadrian commented Jan 3, 2024

I also had storybook/test-runner 0.16 and got no coverage report in output.
Uninstalling and installing 0.13 instead will produce output to terminal.

With 0.16, the following command(s) will generate an output to terminal:

test-storybook --coverage && nyc report --reporter=text -t coverage/storybook --report-dir .storybook

(assuming you have default destinations set)

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