-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore(jest/circleci): setup test report for units #23851
Conversation
This looks great! I will get this in, but first we want to merge #23838 because there will be conflicts in circleCi config as both of those PRs touch on |
@pieh We could consider adding this feature for other tests.
|
Let's see how it goes with just jest unit tests for a week or so - if they prove to be trully valuable - we can enable those for other kinds of tests (I assume other kind of tests might need more involved setup as it's not as straight forward?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Let's try it out
Hey @Slashgear - we found some weirdness with Test summary: For example in here - https://circleci.com/gh/gatsbyjs/gatsby/407019?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link there is failing thing - but it's not in assertions, it appears to be in setup - but it doesn't show in Test summary and also it doesn't log to "terminal output". Luckily we didn't setup test summary for windows tests ( https://circleci.com/gh/gatsbyjs/gatsby/407014?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link ) so we were able to lookup problem there - there is this in terminal output so we were able to pinpoint problem:
Is it possible to setup it up to keep terminal output and not "pipe" everything to test summary? Which appears to not handle every case |
@pieh Jest report will only generate report for failing tests executed. But I may have missed something and removed the
I'm on it ! |
I guess specifying |
https://jestjs.io/docs/en/configuration#reporters-arraymodulename--modulename-options
|
Makes total sense as CLI switch as you wouldn't want have multiple reporters outputting to terminal - it's just with Test summary when it makes less sense :P |
Solved it in ##24071 |
Description
Insight
circleci tab, maintainers will be able to see global stats on tests like💡 This could be done with cypress test or Eslint etc
Documentation
Related Issues