Pytest-flaky test retries shows like test steps
I'm submitting a ...
- [x] 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?
Test retries displayed in Execution -> Test body section.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
-
Install
package -
pip install flaky -
Create file
simple_test.pywith content:
import allure
from flaky import flaky
@allure.step
def step_one():
pass
@allure.step
def step_two():
pass
@flaky
def test_simple():
step_one()
step_two()
assert 0
-
Run test -
pytest simple_test.py --alluredir=allure-results -
Generate allure report -
allure generate --clean allure-results -o allure-results/output -
Open allure report -
allure open allure-results/output

What is the expected behavior?
Test retries should be displayed in 'Retries' tab.
Please tell us about your environment:
- Allure version: 2.3.3
- Test framework: [email protected]
- Allure adaptor: [email protected]
- Flaky: 3.4.0
same behavior for pytest-rerunfailures plugin
+1
+1 Additional (related) issue: If you try to attach anything on teardown, you only get the attachments from the first test failure, not from the retries.
@dstoianov can you test it with latest version? @rocketb it is probably fixed for pеtest-rerunfaiures, but have a chance for pytest-faky too, can you check it? @saluk can you check your case with last version?
Still this issue occurs. can anyone provide a suggestion or workaround