Skip to content

Silence SUBPASS #198

Open
Open
@giampaolo

Description

@giampaolo

Hello and sorry if I'm missing something or this has already been asked.
I find it extremely annoying that each subtest success is printed to stdout. E.g. when running psutil test suite I get:

[gw3] (pid=2846) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2847) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2848) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2849) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2850) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2851) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2852) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2853) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2854) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2855) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2856) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
[gw3] (pid=2857) SUBPASS psutil/tests/test_process_all.py::TestPidsRange::test_it 
...

I would like to configure this, and only print output when one or more sub-tests fail. Is it possible?
Incidentally, this would mimic unittest's behavior, which does NOT print output for passed subtests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions