Marketplace writing-tests

Guidelines on writing tests for the backend

install
source · Clone the upstream repo
git clone https://github.com/aiskillstore/marketplace
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/aiskillstore/marketplace "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/crossbill-highlights/writing-tests" ~/.claude/skills/aiskillstore-marketplace-writing-tests && rm -rf "$T"
manifest: skills/crossbill-highlights/writing-tests/SKILL.md
source content

When writing tests for the backend, follow these guidelines to ensure comprehensive and maintainable test coverage:

  • Try to keep individual tests cases short. Setup common test data using fixtures.
  • When tests need setup, use fixtures and functions to avoid repeating same steps in multiple tests.