-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Description
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
All the logs are printed all the time unless you use --silent or --bail.
What is the expected behavior?
I would like a CLI option for jest so only failing tests + summary are printed to the console.
Definitely a nice to have and not absolutely required. The thought is that I would use this option in the CI environment where you almost never look at all the tests that pass. If you are looking at your CI environment typically it's because something failed and you want to find it quickly.
This option would serve to lessen the amount of logs on CI.
--bail is a fairly ok alternative but, in the case of junit reporting, you actually want the whole suite to finish so you can report on all the test failures not just the first to fail.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest: 20.0.4
Node: 6.10.3
Yarn: 0.27.5