-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
RequireParallelTesting Annotation not working #1261
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
When using @RequireParallelTesting annotation in test classes for test task I would expect test results to be the same as test classes not running in parallel.
Current Behavior
For tests using the @RequireParallelTesting annotation, the error received is
io.mockk.MockKException: no answer found for <some mock> among the configured answers
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
My team was waiting on #1133 to be completed as that seemed to be the issue related to our desire to run our tests in parallel. Upon checking that #1133 was completed and deployed, we updated our version to latest and noticed the annotation still was not working.
Possible Solution
The annotation is not being used
![image](https://private-user-images.githubusercontent.com/92734962/336975372-4528fff5-948e-4efd-a77b-23a374ae8c8c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzNjQ5ODUsIm5iZiI6MTcxOTM2NDY4NSwicGF0aCI6Ii85MjczNDk2Mi8zMzY5NzUzNzItNDUyOGZmZjUtOTQ4ZS00ZWZkLWE3N2ItMjNhMzc0YWU4YzhjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDAxMTgwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmYjA4M2MxYTYwZTlhNWJjMjkxZDMzNGY3YjljNTQ4YzIzMDAyZWY5ZWNhODgwYjcwYzJjZDBiZWE1NGY2MmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LdXEzwhJepZlXIFZahCjFGzYCvitzAoxBjqXkpmBW_Y)
If the annotation takes priority over the system property (this looks to be consistent with other flags in the repo) the ExtensionContext.requireParallelTesting should become:
The text was updated successfully, but these errors were encountered: