-
Notifications
You must be signed in to change notification settings - Fork 255
Test parametrization creates orphan container json files #223
Copy link
Copy link
Closed
Description
I'm submitting a ...
- bug report
- feature request
- support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
Parametrizing a test creates container json files for the parametrized parameter that doesn't seem to be used at all, as it does not have a children node.
It does not appear on the setup section of the tests, which is not a big problem as the parametrization for each test instance is written inside the result json itself.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
import pytest
@pytest.mark.parametrize("message",[
"a",
"b"
])
def test1(message):
assert 1 == 1
What is the expected behavior?
Add a children node to the created container json files, so parametrization appears on setup, or don't create a container json for test parametrization at all.
What is the motivation / use case for changing the behavior?
Have a consistent behavior and do not create files if not needed.
Please tell us about your environment:
- Allure version: 2.6.0
- Test framework: pytest@3.5
- Allure adaptor: allure-pytest@2.3.2b1
Other information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels