本文へスキップ
Kitbay
掲載依頼
スキル

testing-guidelines

FSL-1.1-ALv22026年11月10日 更新961GitHubスター

A contributor skill in Sentry's toolkit repository setting out how tests should be written there.

スキルの内容

A contributor skill in Sentry's toolkit repository setting out how tests should be written there. It asks for third-party network services to be mocked with fixtures taken from real responses and scrubbed of personal data, integration-style tests of public interfaces over unit tests of internals, a modest number of edge cases, a regression test for every bug, and at least one test for each user entry point such as a CLI command or API route. It adds rules on test isolation and file placement and ends with a checklist.

できること

  • Mock external services with sanitised real fixtures
  • Favour integration tests of public entry points
  • Add regression tests for bug fixes
  • Check tests before submitting