test-runner
test-runner copied to clipboard
Add support to `--reporters` flag from Jest
This feature will enable me report test results in a junit file format using the flags:
--reporters=default --reporters=jest-junit
This will add the possibility to integrate the test runner more tightly in my CI
Hey @rhuanbarreto I think you could achieve that directly when running nyc (decoupled from the test runner), by passing reporters to it. Is that the case?
nyc works only for code coverage results. Those flags are for Jest reporting the test results for each story run and its play functions.
@yannbf for the nyc report, the default is text, so can't we remove --reporter=text from
https://github.com/storybookjs/test-runner/blob/380ed6c3ad6a02b0b71d9b9c55b097e9fbd63fee/bin/test-storybook.js#L66
Then this would respect the reporter from any .nycrc file if present?
Alternatively perhaps the nyc reporter could be a config option? I should have time to work on this if it's wanted.
For me v0.6.4 solves the issue. I'm closing it then.