Is your feature request related to a problem? Please describe.
When a test framework like WDIO retries a test, you end up with 2 allure files for the same test; the one that failed and the retry that succeeded (flaky test).
The AllureReporter currently handles duplicates by keeping the first that receives (i.e. 2 consecutive drag and drops keeps first, if both at the same time probably by alphabetic order of the name that is hash).
Describe the solution you'd like
I would like to keep the latest, probably by looking into execution time inside the report not file properties
Describe alternatives you've considered
There is no way to adjust allure file name from WDIO framework checking the libraries involved, by code inspection. It always generates a name with a random uuid at that time, thus not deterministic.
Additional context
Change needs to be performed here:
Is your feature request related to a problem? Please describe. When a test framework like WDIO retries a test, you end up with 2 allure files for the same test; the one that failed and the retry that succeeded (flaky test). The AllureReporter currently handles duplicates by keeping the first that receives (i.e. 2 consecutive drag and drops keeps first, if both at the same time probably by alphabetic order of the name that is hash).
Describe the solution you'd like I would like to keep the latest, probably by looking into execution time inside the report not file properties
Describe alternatives you've considered There is no way to adjust allure file name from WDIO framework checking the libraries involved, by code inspection. It always generates a name with a random uuid at that time, thus not deterministic.
Additional context Change needs to be performed here: