Replies: 2 comments 6 replies
-
Currently there is not Note that the approach, you choose can break other tools Is there any reason why you need to drop test from the name? |
Beta Was this translation helpful? Give feedback.
4 replies
-
I think I found a workaround. I'll leave it here in case someone else has the same issue. You can read more here. Warning |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to modify the name of each test which ends up in the XML report (junit) inside the
testcase
tag.I have managed to use
pytest_collection_modifyitems
hook and change the_nodeid
but it doesn't seem the best approach.Is there any other way to access the test case name right before it ends up in the XML report? Through another hook or pytest object maybe...
Following is my example which works but I'd like to avoid it.
Beta Was this translation helpful? Give feedback.
All reactions