Skip to content

Feature request: CLI option to only print failed tests + summary #4295

@palmerj3

Description

@palmerj3

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions