-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
plugin: junitxmlrelated to the junitxml builtin pluginrelated to the junitxml builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
Currently when a test fails on setup or teardown, the junit error stored has a generic message indicating whether it was during setup or teardown. See https://github.com/pytest-dev/pytest/blob/master/src/_pytest/junitxml.py#L240.
This causes tools reading xml having to rely on the full trace to understand the error cause, which is not always easy to read as it can be a long message.
Can a descriptive short detail be added? I'll say something like
msg = "test teardown failure with error {}".format(report.longrepr.reprcrash.message)
That's a big simplification, all the considerations taken with failures should be added as well
Metadata
Metadata
Assignees
Labels
plugin: junitxmlrelated to the junitxml builtin pluginrelated to the junitxml builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch