From 39886c442565043277caeb705fddefb9d0ca5a34 Mon Sep 17 00:00:00 2001 From: Hans Elizaga Date: Tue, 22 Jul 2025 14:48:54 -0700 Subject: [PATCH 1/2] Fix command name for generating unit tests in documentation --- docs/reference/review-commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/review-commands.md b/docs/reference/review-commands.md index cb50b59c..76d70c59 100644 --- a/docs/reference/review-commands.md +++ b/docs/reference/review-commands.md @@ -32,7 +32,7 @@ CodeRabbit through chat, see [Interact with CodeRabbit reviews](/guides/code-rev | Command | Description | Use Case | | ---------------------------------------- | -------------------------------------------- | --------------------------------------------------- | | `@coderabbitai generate docstrings` | Generates docstrings for functions in the PR | When you need automatic documentation for your code | -| `@coderabbitai auto-generate unit tests` | Generates unit tests for the PR | When you need automatic unit testing for your code | +| `@coderabbitai generate unit tests` | Generates unit tests for the PR | When you need automatic unit testing for your code | | `@coderabbitai configuration` | Shows current CodeRabbit settings | When you need to check or export your configuration | ## Agentic chat commands From f1ad800d9b39c71606b0d8029682139152360a26 Mon Sep 17 00:00:00 2001 From: Hans Elizaga Date: Tue, 22 Jul 2025 14:58:19 -0700 Subject: [PATCH 2/2] Update documentation to reflect the corrected command for generating unit tests --- docs/changelog.md | 2 +- docs/finishing-touches/unit-test-generation.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 9fe435ad..87dc21a9 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -97,7 +97,7 @@ Key capabilities: - **Intelligent Test Generation**: Automatically creates unit tests that cover edge cases, error scenarios, and core functionality - **Context-Aware**: Generates tests that understand your existing codebase patterns and testing conventions -- **One-Click Integration**: Simply comment `@coderabbitai auto-generate unit tests` on any pull request or specific file, or click on the checkbox available in the walkthrough comment for Early Access customers. +- **One-Click Integration**: Simply comment `@coderabbitai generate unit tests` on any pull request or specific file, or click on the checkbox available in the walkthrough comment for Early Access customers. You can customize the generated tests to fit your specific requirements. diff --git a/docs/finishing-touches/unit-test-generation.md b/docs/finishing-touches/unit-test-generation.md index 57c5e211..21bf5a18 100644 --- a/docs/finishing-touches/unit-test-generation.md +++ b/docs/finishing-touches/unit-test-generation.md @@ -21,7 +21,7 @@ Unit Test Generation is an Early Access Experimental feature. ## Usage -Once you are done with your pull request and its reviews, you may want to perform finishing touches to your code, such as adding unit tests. You can request CodeRabbit to generate unit tests by typing `@coderabbitai auto-generate unit tests` in a comment under that pull request or by clicking a checkbox under **Generate Unit Tests** in the CodeRabbit Walkthrough. +Once you are done with your pull request and its reviews, you may want to perform finishing touches to your code, such as adding unit tests. You can request CodeRabbit to generate unit tests by typing `@coderabbitai generate unit tests` in a comment under that pull request or by clicking a checkbox under **Generate Unit Tests** in the CodeRabbit Walkthrough. Once sent, CodeRabbit will perform the following actions: