Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include metadata in junit xml results as property tags #31

Open
wants to merge 1 commit into
base: master
from

Conversation

@sanga
Copy link

@sanga sanga commented Oct 25, 2020

By adding an autoused session fixture that calls record_testsuite_property.

A couple of questions about this.

To my understanding <property> tags aren't supported in xunit1 format - however this feels like something that pytest itself should be looking after rather than checking that in this plugin (i.e. record_testsuite_property should be a null op in that case, or raise or something).

This only handles the session-level metadata. TBH, that's all I need and it's useful in itself.

I suppose that this could/should be noted in the docs somewhere (should it?). I couldn't decide where to reasonably mention this.

By adding an autoused session fixture that calls record_testsuite_property.
@sanga
Copy link
Author

@sanga sanga commented Oct 25, 2020

This would close #16 btw (at least partially). I finally got around to it (just from my personal account)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.