allure-framework / allure-java

Allure integrations for Java test frameworks
Apache License 2.0
341 stars 218 forks source link

🐞: [JUnit5][Maven][Kotlin][Selenide] When retry the test, no testCaseId is generated for the successfully completed test #1056

Closed mrVorotnichok closed 1 week ago

mrVorotnichok commented 1 week ago

What happened?

The problem is as follows: There is a test run in which the tests failed with an error. Next, the failed tests are restarted as part of the same launch. If the test was successfully completed after the restart, then the testCaseId was not generated for it in *-result.json. There is a duplication of test cases, one with the status Passed, the other with the status Failed/Broken

What Allure Integration are you using?

allure-junit5

What version of Allure Integration you are using?

2.24.0

What version of Allure Report you are using?

2.24.0

Code of Conduct

baev commented 1 week ago

Please provide a sample repo to reproduce the problem

mrVorotnichok commented 1 week ago

Please provide a sample repo to reproduce the problem

due to the nda policy, I cannot provide the repository, maybe selective information will suit? For example, part of the pom file

baev commented 1 week ago

You can use this https://github.com/allure-examples/junit5-kotlin-maven example as a template, fork and try to modify it so the issue reproduces.

mrVorotnichok commented 1 week ago

Thanks, I'll try and come back.

mrVorotnichok commented 1 week ago

@baev As part of an attempt to reproduce the problem, I found that the problem was on my side. I'm closing the issue, thanks for the help