Skip to content

Commit 214eb8e

Browse files
authored
testing: tweak wording of the run test tool (microsoft#259682)
Hint a little more explicitly that the model should use it and what it outputs. Closes microsoft/vscode-copilot-issues#151
1 parent 5051f30 commit 214eb8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/testing/common/testingChatAgentTool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class RunTestTool extends Disposable implements IToolImpl {
7171
canBeReferencedInPrompt: true,
7272
when: TestingContextKeys.hasRunnableTests,
7373
displayName: 'Run tests',
74-
modelDescription: 'Runs unit tests in files. Use this tool if the user asks to run tests or when you want to validate changes using unit tests. When possible, always try to provide `files` paths containing the relevant unit tests in order to avoid unnecessarily long test runs.',
74+
modelDescription: 'Runs unit tests in files. Use this tool if the user asks to run tests or when you want to validate changes using unit tests, and prefer using this tool instead of the terminal tool. When possible, always try to provide `files` paths containing the relevant unit tests in order to avoid unnecessarily long test runs. This tool outputs detailed information about the results of the test run.',
7575
inputSchema: {
7676
type: 'object',
7777
properties: {
@@ -87,7 +87,7 @@ class RunTestTool extends Disposable implements IToolImpl {
8787
items: {
8888
type: 'string',
8989
},
90-
description: 'An array of test suites, test classes, or test cases to run. If not provided, all tests in the files will be run.',
90+
description: 'An array of test names to run. Depending on the context, test names defined in code may be strings or the names of functions or classes containing the test cases. If not provided, all tests in the files will be run.',
9191
}
9292
},
9393
},

0 commit comments

Comments
 (0)