-
Notifications
You must be signed in to change notification settings - Fork 198
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
Add support for running more than one test simultaneously on awscdk #3750
Comments
Hi, This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. |
When creating a stack with the AWS CDK, it's necessary to set the environment variable CDK_STACK_NAME. This variable is causing a problem when trying to execute multiple tests simultaneously. |
When creating a stack with the AWS CDK, it's necessary to set the environment variable CDK_STACK_NAME. This variable is causing a problem when trying to execute multiple tests simultaneously. The solution I found was to capture this variable and concatenate it with the filename. This way, each stack will be named for deployment when running tests in the format: CDK_STACK_NAME + "-" + file name Closes #3750 ## Checklist - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [x] Description explains motivation and solution - [ ] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
When creating a stack with the AWS CDK, it's necessary to set the environment variable CDK_STACK_NAME. This variable is causing a problem when trying to execute multiple tests simultaneously. The solution I found was to capture this variable and concatenate it with the filename. This way, each stack will be named for deployment when running tests in the format: CDK_STACK_NAME + "-" + file name Closes #3750 ## Checklist - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [x] Description explains motivation and solution - [ ] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
Congrats! 🚀 This was released in Wing 0.41.20. |
Feature Spec
following #3723
it seems like the test mechanism for awscdk doesn't support running multiple tests at once,
for example, when running:
wing test -t awscdk examples/tests/sdk_tests/function/*.w
(runs 4 tests at once)it compiles well, but then throws many of those errors:
Use Cases
testing
Implementation Notes
No response
Component
CLI
Community Notes
The text was updated successfully, but these errors were encountered: