Skip to content

Commit e9ea808

Browse files
test(featureDev): use env var to enable very slow test aws#7201
## Problem The default 5-minute timeout was insufficient for Amazon Q Feature Dev tests that involve code generation with multiple iterations. This was causing tests to fail prematurely before they could complete their full execution cycle. ## Solution Extended the test timeout to 15 minutes (900,000ms) specifically for the code generation test with multi-iteration scenarios. This provides adequate time for multi-iteration code generation tests to complete their execution while maintaining the existing test behavior.
1 parent 0acb7ae commit e9ea808

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ Unlike the user setting overrides, not all of these environment variables have t
534534
- `AWS_TOOLKIT_TEST_NO_COLOR`: If the tests should include colour in their output
535535
- `DEVELOPMENT_PATH`: The path to the aws toolkit vscode project
536536
- `TEST_DIR` - The directory where the test runner should find the tests
537+
- `AMAZONQ_FEATUREDEV_ITERATION_TEST` - Controls whether to enable multiple iteration testing for Amazon Q feature development
537538

538539
### SAM/CFN ("goformation") JSON schema
539540

packages/amazonq/test/e2e/amazonq/featureDev.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ describe('Amazon Q Feature Dev', function () {
166166

167167
describe('/dev {msg} entry', async () => {
168168
beforeEach(async function () {
169+
const isMultiIterationTestsEnabled = process.env['AMAZONQ_FEATUREDEV_ITERATION_TEST'] // Controls whether to enable multiple iteration testing for Amazon Q feature development
170+
if (!isMultiIterationTestsEnabled) {
171+
this.skip()
172+
} else {
173+
this.timeout(900000) // Code Gen with multi-iterations requires longer than default timeout(5 mins).
174+
}
169175
tab = framework.createTab()
170176
tab.addChatMessage({ command: '/dev', prompt })
171177
tab = framework.getSelectedTab()

0 commit comments

Comments
 (0)