返回 Skill 列表
extension
分类: 开发与工程无需 API Key

writing-tests

编写后端测试的指南

person作者: jakexiaohubgithub

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.