/tests

Category: GitHub Copilot

/tests

Chat slash command: generate unit tests for selected code

Type /tests to generate a test suite for your selected function or class. Copilot infers the testing framework from your project (Jest, pytest, JUnit, etc.) and creates tests covering the main cases and edge cases.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.