testing

Provide testing strategies and workflows for automated tests across frameworks.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/dr-code/beacon --skill testing-dr-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/dr-code/beacon/tree/main/plugins/cc-best/skills/testing
Command: npx skills add https://github.com/dr-code/beacon --skill testing-dr-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides structured testing guidance to reduce regressions, speed up debugging, and ensure consistent quality through disciplined test practices.

Core Features & Use Cases

  • TDD Workflow: Red → Green → Refactor cycle with practical examples and actionable steps.
  • Test Organization: Guidance on Unit, Integration, and End-to-End test structure and separation of concerns.
  • Framework Support: Best practices and patterns applicable to pytest, Jest, JUnit5, xUnit, and Google Test.
  • Mock Strategies & Coverage: Advice to mock only external boundaries, keep tests independent, and aim for meaningful assertions with 80%+ coverage requirements.
  • Use Case: Adopt this skill to design a TDD plan for a new feature, organize tests across layers, and create example tests that integrate into CI pipelines.

Quick Start

Ask the testing skill to create a TDD plan, example pytest tests, and a test organization layout for a new user login feature.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I implement a TDD workflow for a new feature?

Implement a TDD workflow by following the Red, Green, Refactor cycle to write tests before code. This approach structures development into writing a failing test, making it pass, and improving the code while maintaining test validation.

How do I organize unit, integration, and end-to-end tests?

Organize unit, integration, and end-to-end tests by enforcing strict separation of concerns across test layers. This ensures tests remain independent and target specific application boundaries without overlapping execution scopes.

Does this testing strategy work with pytest and Jest?

Yes, this testing strategy works with pytest and Jest, alongside JUnit5, xUnit, and Google Test. It applies framework-agnostic best practices and patterns for build validation and test structure.

What is the best way to mock external boundaries in automated tests?

The best way to mock external boundaries in automated tests is to mock only external system edges rather than internal dependencies. This keeps tests independent and ensures assertions remain meaningful.

What code coverage target should I enforce in CI pipelines?

Enforce a code coverage target of 80% or higher in your CI pipelines. This coverage threshold ensures consistent quality and reduces regressions while maintaining meaningful assertions across the codebase.