Skip to content

logging output in junitxml #6139

@kown7

Description

@kown7

This is the inverse of #2648.

To better evaluate the CI (Jenkins) results, it would be great to have the collected logging information available in the results.xml.

    @pytest.mark.parametrize("count", range(5))
    def test_logging_to_xml(count):
        """Write report to XML -> warnings should be there too"""
        logging.info("This is just information")
        logging.warning("Something went sideways %i", count)
       assert False

I'd would like to see the captured log lines

INFO     root:tests_helper.py:52 This is just information
WARNING  root:tests_helper.py:53 Something went sideways 4

in my results.xml file.

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