
Testing Guidelines
- 13 installs
- 805 repo stars
- Updated August 4, 2026
- getsentry/sentry-mcp
testing-guidelines defines integration-first testing for sentry-mcp.
About
The testing-guidelines skill defines test principles for sentry-mcp contributions. Mock external network services always while using sanitized real-world response fixtures without PII. Prefer integration-style tests of public interfaces over brittle unit tests tied to implementation. Minimize exhaustive edge permutations, covering common paths thoroughly. Add regression tests for every bug fix that would have failed before the patch. Ensure each user entry point such as CLI commands or exported functions has at least one happy-path test. Tests should validate behavior before manual QA with isolated temp directories and cleanup. Mock third-party services with sanitized real fixtures. Prefer integration tests over implementation-coupled units. Add regression tests for every bug fix. Cover each public entry point happy path. Keep tests independent with temp dirs and cleanup. Tests mocking externals while proving public behavior.
- Mock third-party services with sanitized real fixtures.
- Prefer integration tests over implementation-coupled units.
- Add regression tests for every bug fix.
- Cover each public entry point happy path.
- Keep tests independent with temp dirs and cleanup.
Testing Guidelines by the numbers
- 13 all-time installs (skills.sh)
- Ranked #1,509 of 2,153 Testing & QA skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
testing-guidelines capabilities & compatibility
- Capabilities
- core principles six rules · checklist before submitting
- Works with
- sentry
- Use cases
- testing · debugging
What testing-guidelines says it does
Mock External Services, Use Real Fixtures
Prefer Integration Tests Over Unit Tests
npx skills add https://github.com/getsentry/sentry-mcp --skill testing-guidelinesAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 13 |
|---|---|
| repo stars | ★ 805 |
| Last updated | August 4, 2026 |
| Repository | getsentry/sentry-mcp ↗ |
How should I write tests for sentry-mcp?
Write Sentry MCP tests favoring integration coverage, real fixtures, and regression tests for bugs.
Who is it for?
Contributors adding features or fixes to sentry-mcp.
Skip if: Skip for documentation-only edits without code paths.
When should I use this skill?
User adds tests, fixes bugs, or reviews test quality.
What you get
Tests mocking externals while proving public behavior.
Files
Testing Guidelines
Follow these principles when writing tests.
Core Principles
1. Mock External Services, Use Real Fixtures
ALWAYS mock third-party network services. ALWAYS use fixtures based on real-world data.
- Fixtures must be scrubbed of PII (use dummy data like
foo@example.com,user-123) - Capture real API responses, then sanitize them
- Never make actual network calls in tests
2. Prefer Integration Tests Over Unit Tests
Focus on end-to-end style tests that validate inputs and outputs, not implementation details.
- Test the public interface, not internal methods
- Unit tests are valuable for edge cases in pure functions, but integration tests are the priority
- If refactoring breaks tests but behavior is unchanged, the tests were too coupled to implementation
3. Minimize Edge Case Testing
Don't test every variant of a problem.
- Cover the common path thoroughly
- Skip exhaustive input permutations
- Skip unlikely edge cases that add maintenance burden without value
- One representative test per category of input is usually sufficient
4. Always Add Regression Tests for Bugs
When a bug is identified, ALWAYS add a test that would have caught it.
- The test should fail before the fix and pass after
- Name it descriptively to document the bug
- This prevents the same bug from recurring
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.
5. Cover Every User Entry Point
ALWAYS have at least one basic test for each customer/user entry point.
- CLI commands, API endpoints, public/exported functions
- Test the common/happy path first
- This proves the entry point works at all
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.
6. Tests Validate Before Manual QA
Tests are how we validate ANY functionality works before manual testing.
- Write tests first or alongside code, not as an afterthought
- If you can't test it, reconsider the design
- Passing tests should give confidence to ship
Technical Guidelines
File Organization
- Co-locate tests with source files when possible
- Use the project's standard test file naming convention
Test Isolation
Every test must:
- Run independently without affecting other tests
- Use temporary directories for file operations
- Clean up resources after completion
Pure Function Tests
For pure functions without side effects, no special setup is needed—just test inputs and outputs directly.
Checklist Before Submitting
- [ ] New entry points have at least one happy-path test
- [ ] Bug fixes (not intentional changes) include a regression test
- [ ] External services are mocked with sanitized fixtures
- [ ] Tests validate behavior, not implementation
- [ ] No shared state between tests
Related skills
FAQ
What does testing-guidelines do?
testing-guidelines defines integration-first testing for sentry-mcp.
When should I use testing-guidelines?
User adds tests, fixes bugs, or reviews test quality.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.