Skip to content
All templates

Slash Commands · Slash Command

/test - Generate Tests Command

Custom slash command to generate tests for recent changes

testingcommandautomation
Template content
Look at the files I've recently changed and generate tests for any untested functionality.

For each file:
1. Identify exported functions/components without test coverage
2. Write tests covering happy path, edge cases, and error scenarios
3. Place test files next to the source files

Follow the project's existing test patterns and conventions.
Use the test framework already configured in the project.

Use this template in the editor

Open PromptEditor.io to customize this template, save it, and inject it into any AI chat.

Open the editor