Skip to content

Pytest junitxml plugin error vs failure question #7950

Answered by nicoddemus
niroshaimos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @niroshaimos,

pytest considers a failure any assertion error or exception raised inside a test function; errors happen when an assertion error or exception is raised during setup/teardown/collection.

When writing the junitxml file, we follow the same semantics, writing an error or failure tag accordingly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@niroshaimos
Comment options

Answer selected by niroshaimos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants