Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed test-results missing in case of test parallel execution [allure-scalatest] (fixes #945) #946

Merged

Conversation

dm-test
Copy link
Contributor

@dm-test dm-test commented Aug 10, 2023

fixes #945

Context

When you run tests in parallel with scalatest, you can miss some allure-results files. It caused by different from java frameworks (testng, junit) test threads behaviours in scalatest. Allure-scalatest knows about this point, but it was a bug in stopTest behaviour: this method worked as in java-style and tried to get UUID of test case from internal allure thread holder class. In multithreading launches in scalatest threads sometimes have changed and we can't find UUID by thread in allure internal threadlocal storage. So in such cases we can't write a test result to file.

Checklist

@CLAassistant
Copy link

CLAassistant commented Aug 10, 2023

CLA assistant check
All committers have signed the CLA.

@dm-test dm-test force-pushed the allure-scalatest-fix-parallel-execution branch from 0e7d782 to 5bc9e81 Compare August 10, 2023 14:54
@baev baev added the type:bug Something isn't working label Aug 15, 2023
@baev baev merged commit 47af6f6 into allure-framework:master Aug 17, 2023
3 of 4 checks passed
@baev
Copy link
Member

baev commented Aug 17, 2023

@dm-test thanks!

@dm-test dm-test deleted the allure-scalatest-fix-parallel-execution branch August 18, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:scalatest type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞: [allure-scalatest] Missed some test results in parallel execution
3 participants