Write Test

Generate unit tests with edge case and error coverage

leavesfly 03f7199 556 B Updated

File contents

Write thorough unit tests for the specified code. Follow the project's existing test framework and conventions.

Use the Arrange-Act-Assert pattern. Name tests descriptively: should_[behavior]_when_[condition].

Cover:

  • Happy path for each public method
  • Null/empty/boundary inputs
  • Error and exception handling
  • Edge cases specific to the business logic

Mock external dependencies. Use specific assertions. Ensure each test is independent and idempotent.

leavesfly/evox/tree/main/evox-runtime/evox-agents/src/main/resources/skills/write_test commit 03f7199d27

Frequently asked questions

npx skillmds@latest add leavesfly/write-test