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

add --junit flag to test runner #179

Merged
merged 1 commit into from
Aug 26, 2022
Merged

add --junit flag to test runner #179

merged 1 commit into from
Aug 26, 2022

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Aug 25, 2022

Release notes

The test runner now supports JUnit XML test reports out of the box with a --junit flag:

yarn test-storybook --junit

With that flag, the test runner will add jest-junit to the reporters list and generate a test report in a JUnit XML format. You can further configure the behavior of jest-junit by either setting specific JEST_JUNIT_* environment variables or by defining a jest-junit field in your package.json with the options you want, which will be respected when generating the report. You can look at all available options here: https://github.com/jest-community/jest-junit#configuration

📦 Published PR as canary version: 0.6.4--canary.179.342c799.0

✨ Test out this PR locally via:

npm install @storybook/test-runner@0.6.4--canary.179.342c799.0
# or 
yarn add @storybook/test-runner@0.6.4--canary.179.342c799.0

@yannbf yannbf added the patch Increment the patch version when merged label Aug 25, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 25, 2022

Codecov Report

Merging #179 (c8f28d5) into next (d778968) will increase coverage by 0.13%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             next     #179      +/-   ##
==========================================
+ Coverage   76.40%   76.53%   +0.13%     
==========================================
  Files          11       11              
  Lines         178      179       +1     
  Branches       37       37              
==========================================
+ Hits          136      137       +1     
  Misses         42       42              
Impacted Files Coverage Δ
src/util/getCliOptions.ts 55.55% <ø> (ø)
src/util/getParsedCliOptions.ts 5.88% <ø> (ø)
src/playwright/transformPlaywright.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@yannbf yannbf merged commit 255c804 into next Aug 26, 2022
@yannbf yannbf mentioned this pull request Aug 26, 2022
@github-actions
Copy link

🚀 PR was released in v0.6.4 🚀

@yannbf yannbf deleted the feat/junit-reports branch November 18, 2022 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants