Skip to content

Summarize output result of all test binaries run #4324

Open
@davemilter

Description

@davemilter

For example if run cargo test for bindgen,
you got such output:

running 16 tests
**many lines**
test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
running 305 tests
**many lines**
test result: ok. 305 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
running 10 tests
**many lines**
test result: ok. 2 passed; 0 failed; 8 ignored; 0 measured; 0 filtered out

Normally you run it in window that not in fullscreen mode (common scenario that this window
belong to editor/ide and you have your code on the same screen at the same time),

so after all you see only last results summary, ordinary doc tests summary result, which are not important at now, it would be nice to have to have option to print
summary result at the end, like this:

Summary:
                 passed | failed |  ignored | measured
unit tests        x     |    x    |       x       |      x
func tests       x     |    x    |       x       |      x
doc tests        x     |    x    |       x       |      x

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-testS-blocked-externalStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions