-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(amazonq): Add command to generate unit tests for selected code #4869
Conversation
…etbrains into add-generate-tests
* Added authType to loginWithBrowser metric * Add open and close sign in metrics * detekt * addressed feedback * feedback * moved the util function
* Added UI click metrics on all login options * Combined calls for continue and back button
* Revert open and close sign in webview telemetry * add changelog * added issue in changelog * Update bugfix-64bb0c4b-8d3b-45b0-b615-8722bb3e9e4a.json --------- Co-authored-by: Richard Li <[email protected]>
* telemetry(amazonq): update telemetry * remove unused import --------- Co-authored-by: David Hasani <[email protected]>
…etbrains into add-generate-tests
…etbrains into add-generate-tests
...brains-community/src/software/aws/toolkits/jetbrains/services/cwc/commands/TestCodeAction.kt
Outdated
Show resolved
Hide resolved
.changes/next-release/feature-6597c5eb-9bb5-4f22-a555-7cd9b14be7be.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint is failing
...brains-community/src/software/aws/toolkits/jetbrains/services/cwc/commands/TestCodeAction.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Richard Li <[email protected]>
val prompt = "${message.command} the following part of my code for me: $codeSelection" | ||
val prompt = if (EditorContextCommand.GenerateUnitTests == message.command) | ||
"${message.command.verb} the following part of my code for me: $codeSelection" else | ||
"${message.command} the following part of my code for me: $codeSelection"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Redundant Semicolon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Clear the unused imports.
…etbrains into add-generate-tests
…etbrains into add-generate-tests
Adds command to Amazon Q to generate unit tests for selected code. The feature will be limited to internal Amazon users to collect usage metrics and, subsequently, will be released to all users.
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.