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

fix: In concurrent test run fixed awaiting of fixture before hook #8097

Merged
merged 13 commits into from
Dec 13, 2023

Conversation

Bayheck
Copy link
Collaborator

@Bayheck Bayheck commented Dec 1, 2023

Purpose

Fixed the bug when the concurrent tests did not wait until the finish of the fixture and global before hook.

Approach

Updated the method runFixtureBeforeHookIfNecessary in src/runner/fixture-hook-controller.ts. Now we store the promises of hooks in item from _getFixtureMapItem and await them in concurrent tests.

References

closes #6999

Pre-Merge TODO

  • Write tests for your proposed changes
  • Make sure that existing tests do not fail

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Dec 1, 2023
@PavelMor25 PavelMor25 removed the STATE: Need response An issue that requires a response or attention from the team. label Dec 4, 2023
src/runner/fixture-hook-controller.ts Outdated Show resolved Hide resolved
@AlexKamaev
Copy link
Contributor

@Aleksey28 please review

Copy link
Collaborator

@Aleksey28 Aleksey28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your style is getting better, but there are a few moments with naming.

src/runner/fixture-hook-controller.ts Outdated Show resolved Hide resolved
src/runner/fixture-hook-controller.ts Outdated Show resolved Hide resolved
src/runner/fixture-hook-controller.ts Outdated Show resolved Hide resolved
src/runner/fixture-hook-controller.ts Outdated Show resolved Hide resolved
@aleks-pro aleks-pro merged commit 20b6159 into DevExpress:master Dec 13, 2023
20 checks passed
Copy link

Release v3.5.0-rc.1 addresses this.

1 similar comment
Copy link

Release v3.5.0-rc.1 addresses this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The combination of video recording and concurrency breaks testcafe test hook execution
5 participants