You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
Cannot get the original pytest nodeid in Allure report.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
The original pytest nodeid can be found in Allure report.
What is the motivation / use case for changing the behavior?
For pytest parameterized test cases using the ids parameter:
importallureimportpytest@allure.title("Test with parameter id")@pytest.mark.parametrize("item", ["foo", "bar"], ids=["f", "b"])deftest_parameter_id(item):
pass
I am unable to programmatically establish a correspondence between pytest test cases and test cases in the Allure report because the parameter part of the pytest nodeid uses the values from the ids parameter, and Allure cannot obtain this parameter id, only the parameter values. Therefore, it is not possible to determine the correspondence by comparison. I would like to display the original pytest nodeid in the Allure report to facilitate comparison.
Additionally, although the list is ordered, my program treats each parameter as a separate test case, which may disrupt the parameter values, making it impossible to establish a correspondence based on the list index.
File details:
pytest test case collection result (using the command pytest --collect-only --collect-report=out.json tests/test_parameter_id.py):
I'm submitting a ...
What is the current behavior?
Cannot get the original pytest nodeid in Allure report.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
The original pytest nodeid can be found in Allure report.
What is the motivation / use case for changing the behavior?
For pytest parameterized test cases using the
ids
parameter:I am unable to programmatically establish a correspondence between pytest test cases and test cases in the Allure report because the parameter part of the pytest nodeid uses the values from the
ids
parameter, and Allure cannot obtain this parameter id, only the parameter values. Therefore, it is not possible to determine the correspondence by comparison. I would like to display the original pytest nodeid in the Allure report to facilitate comparison.Additionally, although the list is ordered, my program treats each parameter as a separate test case, which may disrupt the parameter values, making it impossible to establish a correspondence based on the list index.
File details:
pytest test case collection result (using the command
pytest --collect-only --collect-report=out.json tests/test_parameter_id.py
):Allure report data (one of the files in the
allure-report/data/test-cases
directory):Please tell us about your environment:
Other information
The text was updated successfully, but these errors were encountered: