Rename the report node a test which is paramterized #21
sankethkamathk
started this conversation in
General
Replies: 1 comment
-
You can use ids argument to generate a better name. https://docs.pytest.org/en/7.4.x/example/parametrize.html#different-options-for-test-ids https://docs.pytest.org/en/7.4.x/reference/reference.html#pytest.Metafunc.parametrize |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have my test like this
@pytest.mark.parametrize("data", load_device_deployment_data())
def test_device_negative_deployment(data):
and in the report, I get the name of tests as shown in the screenshot.. How do I override the data0,data1 to have a meaningful name
Beta Was this translation helpful? Give feedback.
All reactions