testing-guidelines

Standardize software testing with integration tests, fixtures, and regression coverage.

359|32|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/getsentry/warden --skill testing-guidelines-getsentry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-guidelines
Source: https://github.com/getsentry/warden/tree/main/.agents/skills/testing-guidelines
Command: npx skills add https://github.com/getsentry/warden --skill testing-guidelines-getsentry

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to writing effective tests, ensuring code quality, maintainability, and robustness by establishing clear principles and technical standards.

Core Features & Use Cases

  • Testing Principles: Emphasizes mocking external services, using real-world fixtures, preferring integration tests, and adding regression tests for bugs.
  • Code Coverage: Guides on covering user entry points and ensuring tests validate functionality before manual QA.
  • Technical Standards: Details file organization, test isolation, and testing pure functions.
  • Use Case: When developing a new feature, consult these guidelines to ensure the accompanying tests are well-structured, reliable, and effectively validate the new functionality and prevent regressions.

Quick Start

Follow these testing guidelines when adding new functionality or fixing bugs.

Frequently Asked Questions about testing-guidelines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to structure integration tests for new features?

Prefer integration tests over isolated unit tests to validate user entry points and public interfaces. Use real-world fixtures for data setup and ensure test isolation to maintain robust code quality and prevent cross-test dependencies.

How do I write regression tests for software bugs?

To write regression tests, add a specific test validating the fixed bug alongside your existing test suite. This ensures the exact user entry point is validated and prevents the same functionality from breaking in future code changes.

When should I mock external services in unit tests?

Mock external services whenever a test interacts with dependencies outside your codebase to ensure test isolation. This testing principle guarantees reliable validation of public interfaces without relying on unpredictable external network responses.

How do I organize test files to maintain code quality?

Organize test files by following clear technical standards for structure and isolation. This standardized methodology ensures your testing suite remains maintainable, validates pure functions correctly, and reliably covers user entry points before manual QA.