.agents/skills/testing-guidelines/SKILL.md
Guide for writing tests. Use when adding new functionality, fixing bugs, or when tests are needed. Emphasizes integration tests, real-world fixtures, and regression coverage.
npx skillsauth add getsentry/sentry-mcp testing-guidelinesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Follow these principles when writing tests.
ALWAYS mock third-party network services. ALWAYS use fixtures based on real-world data.
[email protected], user-123)Focus on end-to-end style tests that validate inputs and outputs, not implementation details.
Don't test every variant of a problem.
When a bug is identified, ALWAYS add a test that would have caught it.
Note: Regression tests are for unintentional broken behavior (bugs), not intentional changes. Intentional feature removals, deprecations, or breaking changes do NOT need regression tests—these are design decisions, not defects.
ALWAYS have at least one basic test for each customer/user entry point.
Note: "Entry point" means the public interface—exported functions, CLI commands, API routes. Internal/private functions are NOT entry points, even if they handle user-facing flags or options. Test entry points; internal functions get coverage through those tests.
Tests are how we validate ANY functionality works before manual testing.
Every test must:
For pure functions without side effects, no special setup is needed—just test inputs and outputs directly.
testing
Alias for sentry-skills:skill-writer. Use when users explicitly ask for "skill-creator" or reference the legacy skill name. Redirects to the canonical skill authoring workflow.
development
QA test changes against the local dev server. Use when explicitly invoked via /qa to verify changes work end-to-end.
development
Review code for correct logging and error handling patterns. Use when reviewing code that handles errors, uses logging functions, or captures exceptions. Enforces the error hierarchy where 4xx errors are never logged to Sentry and 5xx errors always are. Trigger phrases include "review logging", "check error handling", "audit observability", or verify correct use of logIssue vs logError.
testing
Alias for sentry-skills:pr-writer. Use when users explicitly ask for "create-pr" or reference the legacy skill name. Redirects to the canonical PR writing workflow.