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 parallel testing flag #1238

Merged
merged 1 commit into from Apr 2, 2024
Merged

Conversation

Evenprime
Copy link
Contributor

Fixes #1133

There was an attempt to fix the issue, but the implementation of the flag requireParallelTesting is broken. The intention was to enable calling of unmockkAll() without calling clearAllMocks(), but the way it got implemented makes that impossible. Currently, if keepMocks flag is false, both methods get called and the requireParallelTesting gets ignored.

This fixes the logic, such that setting the flag requireParallelTesting to true properly prevents the clearAllMocks() call, independent of the state of the keepMocks flag.

@Raibaz Raibaz merged commit 143f6bb into mockk:master Apr 2, 2024
11 checks passed
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.

Mockk lost support for parallel test execution in version 1.13.7
2 participants