Skip to content

Commit 880c92c

Browse files
authored
test(cli-integ): output go version in init-go integration tests (#766)
This change adds a `go version` check to the init-go integration test to ensure Go is available and allow checking the version before running the CDK init command. This helps provide better debugging information if the test fails due to Go not being available in the test environment. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent b57a3fb commit 880c92c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@aws-cdk-testing/cli-integ/tests/init-go/init-go.integtest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { integTest, withTemporaryDirectory, ShellHelper, withPackages } from '..
88
const shell = ShellHelper.fromContext(context);
99
await context.cli.makeCliAvailable();
1010

11+
await shell.shell(['go', 'version']);
1112
await shell.shell(['cdk', 'init', '--lib-version', context.library.requestedVersion(), '-l', 'go', template]);
1213

1314
// Canaries will use the generated go.mod as is

0 commit comments

Comments
 (0)