Skip to content

Cosmetic improvement to verbose pytest output table part 2 #2396

@opotowsky

Description

@opotowsky

Right now (with an open PR) we have the following:

Image

I expected that "reason" column to say Parallel tests only and then the table would fit on the page. It instead says Parallel tests only /some/file/path/that's/probably/really/long and now it will NEVER fit on the page.


From a little testing @john-science did, verbose pytest output on the command line does not replicate this:

$ pytest -v armi/tests/test_mpiFeatures.py

yields:

armi/tests/test_mpiFeatures.py::MpiOperatorTests::test_basicOperatorMPI SKIPPED (Parallel test only)
armi/tests/test_mpiFeatures.py::MpiOperatorTests::test_finalizeInteract SKIPPED (Parallel test only)
armi/tests/test_mpiFeatures.py::MpiOperatorTests::test_primaryCritical SKIPPED (Parallel test only)
armi/tests/test_mpiFeatures.py::MpiOperatorTests::test_primaryException SKIPPED (Parallel test only)
armi/tests/test_mpiFeatures.py::MpiDistributeStateTests::test_compileResults SKIPPED (Parallel test only)
armi/tests/test_mpiFeatures.py::MpiDistributeStateTests::test_distributeInterfaces SKIPPED (Parallel test only)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    low priorityStyle points and non-features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions