-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
record_xml_attribute not visible in JUnit XML when using pytest-xdist #8654
Comments
Does the |
To answer my own question: no it does not. |
I've encountered the same issue, will it be resolved? |
just took note on this again |
@RonnyPfannschmidt it seems that i can update existing attributes but can't add new ones. |
@gs202 im not sure what you are referring to here the issue is primarily about the |
I'll use an example for this test:
Here is the junit xml file without using
After adding
The xml file will be:
As you can see the |
@gs202 at first glance that is a different issue, please open a new one |
Perhaps this is the same issue as #8662 (comment)? |
I would like to follow up on this issue when using xdist like mentioned in the subject:
Running generates
While enabling xdist does not generate the assertion and does not update the classname attribute:
|
Same issue for me as well. pytest-xdist does not add Any solution? |
Unfortunately I think we should at least raise an error/warning if |
Currently
pytest-xdist
is working without a problem withrecord_property
, but it does not save the values usingrecord_xml_attribute
fixture.Here's the code to reproduce this issue
I run this this test twice using following command:
py.test test_example.py --junit-xml=without_xdist.xml
and thenpy.test test_example.py --junit-xml=with_xdist.xml -n auto
without_xdist.xml
with_xdist.xml
So it looks like
key="1"
is missing from junit XML when using xdist.I've tested it using latest pytest (5.4.2) and pytest-xdist (1.32.0)
Thanks for any help.
The text was updated successfully, but these errors were encountered: