-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(integ_tests_alpha): Support non-TypeScript tests #21169
Comments
This might be true. It probably wouldn't be too hard to add support for this, although it might get complex for other languages as we don't necessarily know the CDK app's interpreter (as the integ tests are lacking a |
+1 for python support |
Any news on this one? |
Support for |
Thanks a lot! And is it possible to change the generated SingletonFunctionRole's Path attribute, or add another execution role for the lambda? I have created an AwsApiCall, but I cannot see any possibility to parameterize the resources created inside the AwsApiCall object. |
Sounds possible. Please open a new issue for this so we can track it. Pull Requests are also welcome! |
#22058 will soon introduce language presets for js, ts and python. These languages will still be unsupported due to lack of testing, but should be added asap: {
// works but it's a bit ugly to need to have a project per test case - is there a better solution?
csharp: ['dotnet run --project {filePath}', ['^Integ.*\\.csproj$']],
fsharp: ['dotnet run --project {filePath}', ['^Integ.*\\.fsproj$']],
// this doesn't work. See previous PR attempts for ideas
java: ['mvn -e -q compile exec:java', ['^Integ.*\\.java$']],
} |
…Script, Python and Go (#22058) It was already possible to run tests in any language by providing `--app` and `--test-regex` directly. This change introduces the concept of language presets that can be selected. By default all supported languages will be detected. Users can run integration tests for multiple languages at the same time, using the default preset configuration. To further customize anything, only a single language can be selected. However it's always possible to call the `integ-runner` multiple times: ```console integ-runner --language typescript integ-runner --language python --app="python3.2" integ-runner --language go --test-regex=".*\.integ\.go" ``` Resolves part of #21169 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Language preset for My experience with .NET and Java projects is limited so I'm looking for good ideas how these projects would expect integration tests to be structured. Particularly for .NET it appears we need a different project per test because each integ tests needs to be in a |
Describe the bug
I have written a simple integration test case to my stack in Python, but I am not able to run it. I used integ-runner and tried with cdk deploy --app "python integration_test.py" but it seems none of them are working. Is this feature available only with ts library?
Many thanks
Expected Behavior
Able to run my tests.
Current Behavior
yarn's integ-runner cli uses *ts files to run tests, so with my python code it will not compile
with cdk deploy --app "python integ_tests.py" the stack deployed, but nothing happened
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.28.0 (build ba233f0)
Framework Version
No response
Node.js Version
16.15.1
OS
Mac OS 12.3.1
Language
Python
Language Version
3.9.4
Other information
No response
The text was updated successfully, but these errors were encountered: