Prevent allure from force adding test folder name as parent suite name when parent suite is not specified
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the report with tests in Folder_A and Folder_B that share the same allure.dynamic.suite("Tests") value. Inspect the pytest integration path that assigns parent suites and the pytest.ini configuration mentioned in the issue. Done means folder names are not added as parent suites when none is specified, while explicitly defined parent suites still work.
Written by the indexing model from the issue text.
Description
I have tests in several folders with all tests having a common allure.dynamic.suite name.
In my allure report all the tests get grouped under this name.
However, of late, the suites go under the folder name of the tests such that the folder name is taken as the Parent Suite.
Is there a way to prevent the folder names from being taken as Parent Suite name and simply group the tests under the suite names like how it used to be?
The only way i can think of currently to avoid this issue is to rename all allure.dynamic.suite to allure.dynamic.parent_suite in all of my tests.
But the reason this will be a problem is,
If I collect multiple allure artifacts and consolidate them into a single report, I would want to group them under a common parent suite name. But since each report will have a parent suite name, they will get overwritten.
What Operating System are you using (both controller, and any agents involved in the problem)?
Windows
Reproduction steps
- Have tests in two folders (Folder_A, Folder_B) with each of the tests having the same allure.dynamic.suite name("Tests")
- Run the tests and generate allure report
Expected Results
Report should display,
Actual Results
Report is displaying,
The name of the test folder is taken as the parent suite name although no parent suite has been specified.
Anything else?
Can we have,
A configuration option like --no-parent-suite or --disable-auto-parent-suite
Or a new pytest.ini option like allure_skip_parent_suite = true
Are you interested in contributing a fix?
Yes
- Dominant language
- Python
- Stars
- 815
- Forks
- 260
- Avg merge
- 9h 12m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from allure-framework/allure-python
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Added Categories Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
allure-framework/allure-python#918 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
All issues in allure-framework/allure-python
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100