aws/aws-cdk

(integ_tests_alpha): Support non-TypeScript tests

Open

#21.169 aperta il 15 lug 2022

Vedi su GitHub
 (8 commenti) (1 reazione) (0 assegnatari)TypeScript (3530 fork)batch import
clieffort/smallfeature-requestgood first issuep1package/tools

Metriche repository

Star
 (10.710 star)
Metriche merge PR
 (Merge medio 14g 11h) (68 PR mergiate in 30 g)

Descrizione

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

Guida contributor