Skip to content
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

cli: create patterns to test interactive commands #31933

Open
Tracked by #32171
mrgrain opened this issue Oct 29, 2024 · 0 comments
Open
Tracked by #32171

cli: create patterns to test interactive commands #31933

mrgrain opened this issue Oct 29, 2024 · 0 comments
Labels
@aws-cdk/core Related to core CDK functionality cli Issues related to the CDK CLI p1

Comments

@mrgrain
Copy link
Contributor

mrgrain commented Oct 29, 2024

The AWS CDK CLI is a command-line tool supporting interactive and unattended operation. However due to complexity of testing interactive input, all our tests (unit & integ) are currently only testing unattended operation. In some cases this is good enough, however in other cases the code paths are significantly different enough to warrant explicit testing.

We need to come up with a repeatable pattern on how to define integration tests for interactive input. This could be as simple as an example integ test and a few helper functions. Or it could be a "mini-framework" to mimic the API of browser testing frameworks like playwright. Either way, let's keep it very tightly focused on our needs.

@mrgrain mrgrain added p1 @aws-cdk/core Related to core CDK functionality cli Issues related to the CDK CLI labels Oct 29, 2024
@iliapolo iliapolo changed the title Create patterns to test interactive CLI commands cli: create patterns to test interactive commands Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality cli Issues related to the CDK CLI p1
Projects
None yet
Development

No branches or pull requests

1 participant