Writing Tests

Guidelines on writing tests for the backend

ComeOnOliver Updated 61 repo stars

File contents

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.

ComeOnOliver/skillshub/tree/main/skills/aiskillstore/marketplace/crossbill-highlights/writing-tests commit 7a85dacafa

Frequently asked questions

npx skillmds@latest add comeonoliver/writing-tests