# gen-tests > Generate unit tests for the specified code - Author: cloriselvis - Repository: cloriselvis/test - Version: 20260207222921 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/cloriselvis/test - Web: https://mule.run/skillshub/@@cloriselvis/test~gen-tests:20260207222921 --- --- name: gen-tests description: Generate unit tests for the specified code argument-hint: [file-or-function] --- Generate unit tests for the specified file or function. Follow these guidelines: 1. Use the testing framework already configured in the project (fall back to common defaults for the language) 2. Cover happy path, edge cases, and error cases 3. Use descriptive test names that explain the expected behavior 4. Keep tests focused — one assertion per logical concept