writing-tests

为后端编写测试的指南

📖 中文导读:为后端编写测试的指南 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: writing-tests description: Guidelines on writing tests for the backend

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.