Test Generator

Generate meaningful unit and integration tests that cover real behavior, not trivial assertions.

skillist-io f69a871 761 B Updated

File contents

Test Generator

Use when adding test coverage for new or changed code.

When to activate

  • New module or API route without tests
  • Bug fix that needs a regression test
  • User requests test coverage

Procedure

  1. Read the implementation; list inputs, outputs, and edge cases.
  2. Test behavior, not implementation details.
  3. One assertion theme per test; descriptive test names.
  4. Mock external I/O; use real logic for pure functions.
  5. Skip tests that only assert mocks or constants.

Output format

  • Test file path
  • Cases: happy path, edge cases, error paths
  • Any fixtures or setup needed

skillist-io/skillist/tree/main/examples/skills/test-generator commit f69a8711f2

Frequently asked questions

npx skillmds@latest add skillist-io/test-generator