Skip to content

Commit 8d67f7a

Browse files
authored
fix(amazonq): update capability card text for /test (#6646)
## Problem - Capability card text should be updated ## Solution - Update capability card with correct text ![vsc](https://github.com/user-attachments/assets/b5a1aca0-25c4-4f75-a4ff-c43ea79f9614) --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 8d2d335 commit 8d67f7a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "/test: update capability card text"
4+
}

packages/core/src/amazonqTest/chat/views/connector/connector.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,16 @@ export class CapabilityCardMessage extends ChatMessage {
141141
message: '',
142142
messageType: 'answer',
143143
informationCard: {
144-
title: '/test',
145-
description: 'Included in your Q Developer Agent subscription',
144+
title: '/test - Unit test generation',
145+
description: 'Generate unit tests for selected code',
146146
content: {
147-
body: `I can generate unit tests for your active file.
147+
body: `I can generate unit tests for the active file or open project in your IDE.
148148
149-
After you select the functions or methods I should focus on, I will:
150-
1. Generate unit tests
151-
2. Place them into relevant test file
149+
I can do things like:
150+
- Add unit tests for highlighted functions
151+
- Generate tests for null and empty inputs
152152
153-
To learn more, check out our [User Guide](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/q-in-IDE.html).`,
153+
To learn more, visit the [Amazon Q Developer User Guide](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/test-generation.html).`,
154154
},
155155
icon: 'check-list' as MynahIcons,
156156
},

0 commit comments

Comments
 (0)