Skip to content

Commit 4777c0e

Browse files
authored
Bug fixes for integration tests (#834)
* bug fixes * undo markdown file * readme * comment
1 parent 5e8d5dd commit 4777c0e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

tests/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ npm install
183183
| `npm run test:integration` | Run integration tests (requires Copilot CLI auth, az auth, azd auth) |
184184
| `npm run test:integration -- azure-deploy` | Run integration tests for a specific skill |
185185
| `npm run test:integration -- azure-deploy static-web-apps-deploy` | Run integration tests for a specific describe group |
186+
| `npm run test:integration -- azure-deploy "creates simple containerized Node.js"` | Run a specific test |
186187
| `npm run test:skill -- azure-ai` | Run all tests for a specific skill |
187188
| `npm run test:ci` | Run tests for CI (excludes integration tests) |
188189
| `npm run test:watch` | Re-run tests on file changes |

tests/scripts/run-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if (config.requiresPattern && extraArgs.length > 0) {
112112
const remaining = extraArgs.slice(1);
113113
// If there's a second positional arg (not a flag), use it as --testNamePattern
114114
if (remaining.length > 0 && !remaining[0].startsWith("-")) {
115-
jestArgs = [...jestArgs, `--testPathPattern=${skillPattern}`, `--testNamePattern=${remaining[0]}`, ...remaining.slice(1)];
115+
jestArgs = [...jestArgs, `--testPathPattern=${skillPattern}`, `--testNamePattern="${remaining[0]}"`, ...remaining.slice(1)];
116116
} else {
117117
jestArgs = [...jestArgs, `--testPathPattern=${skillPattern}`, ...remaining];
118118
}

tests/utils/agent-runner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ export async function run(config: TestConfig): Promise<AgentMetadata> {
332332
// Send follow-up prompts
333333
for (const followUpPrompt of config.followUp ?? []) {
334334
isComplete = false;
335-
await session.sendAndWait({ prompt: followUpPrompt });
335+
await session.sendAndWait({ prompt: followUpPrompt }, 1800000);
336336
}
337-
337+
338338
// Generate markdown report
339339
writeMarkdownReport(config, agentMetadata);
340340

0 commit comments

Comments
 (0)