Skip to content

Commit 43df949

Browse files
committed
Support configuring custom CLI arguments for test execution
1 parent 5881152 commit 43df949

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

integration/vscode/ada/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,11 @@
724724
"type": "string",
725725
"description": "Path to python interpreter, useful when you want to use a specific venv",
726726
"default": "python"
727+
},
728+
"e3-testsuite.args": {
729+
"type": "array",
730+
"description": "Command line arguments to pass to testsuite.py when running tests",
731+
"default": []
727732
}
728733
}
729734
}

integration/vscode/ada/src/e3Testsuite.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,13 @@ export function activateE3TestsuiteIntegration(context: vscode.ExtensionContext)
213213
cmd.push(`--notify-events=python:${module}:${hook}`);
214214
}
215215

216+
/**
217+
* Append CLI args defined in settings
218+
*/
219+
cmd.push(
220+
...(vscode.workspace.getConfiguration('e3-testsuite').get<string[]>('args') ?? []),
221+
);
222+
216223
const cwd = vscode.workspace.workspaceFolders![0].uri.fsPath;
217224
await new Promise<void>((resolve, reject) => {
218225
const p = spawn(cmd[0], cmd.splice(1), {

0 commit comments

Comments
 (0)