aws/aws-cdk

(integ_tests_alpha): Support non-TypeScript tests

Open

#21,169 opened on Jul 15, 2022

View on GitHub
 (8 comments) (1 reaction) (0 assignees)TypeScript (10,710 stars) (3,530 forks)batch import
clieffort/smallfeature-requestgood first issuep1package/tools

Description

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

app = App()

stack = Stack(app, "stack",env=default_env)
integ = IntegTest(app, "Integ", test_cases=[stack])

invoke = integ.assertions.invoke_function(
    function_name=stack.writer_lambda.function_name
)
invoke.expect(ExpectedResult.object_like({
    "Payload": "200"
}))

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

Contributor guide

(integ_tests_alpha): Support non-TypeScript tests · aws/aws-cdk#21169 | Good First Issue