test-runner icon indicating copy to clipboard operation
test-runner copied to clipboard

[bug] coverage no longer report in terminal

Open anewstead opened this issue 1 year ago • 2 comments

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

anewstead avatar Dec 04 '23 15:12 anewstead

Same observation on my project. It look like it is a regression of a fix in the v0.12.0 corrected by @yannbf in https://github.com/storybookjs/test-runner/issues/332

rfreydi avatar Dec 20 '23 07:12 rfreydi

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)

designbyadrian avatar Jan 03 '24 13:01 designbyadrian

Hey everyone! This is now fixed in version 0.18.0, sorry for the inconvenience and thanks for your patience!

yannbf avatar May 17 '24 15:05 yannbf