Any way to disable "record_property is incompatible with xunit2" warning? #10110
-
If you use the
I can think of two ways to interpret this warning:
The 2nd interpretation is (I believe) the correct one. My problem: I'm not using certain popular CI tools that will refuse to parse the emitted XML. I'm using a tool that actually handles the extra properties super well and displays them in a nice intelligent way. I'm able to do cool things automatically like "Attach an email link to the system's engineer who is responsible for this test case" or "Automatically add a link to the product documentation that describes the thing that's failing" or even "Click this link to automatically file a bug for this failing test case." all powered by what's in the test XML. I'd like to continue using the If I use Is there some way I can tell pytest to just chill and not warn me about this? Alternatively, can we soften the warning message a little bit to make it more clear that the problem is not with generating the XML - pytest can do that just fine - the problem is certain tools will refuse to parse the emitted XML? I'm worried that while the warning can currently be interpreted as 2 (above) things will one day change and interpretation 1 will become correct. Alternatively, is there a way to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You should be able to ignore the warning via the config (just like any other warning): https://docs.pytest.org/en/7.1.x/how-to/capture-warnings.html |
Beta Was this translation helpful? Give feedback.
You should be able to ignore the warning via the config (just like any other warning): https://docs.pytest.org/en/7.1.x/how-to/capture-warnings.html