mock-compensation

Identify and document gaps in mocked framework behavior testing.

1|Updated Feb 18, 2024
One-click install
npx skills add https://github.com/jhnhnck/attu-bot --skill mock-compensation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mock-compensation
Source: https://github.com/jhnhnck/attu-bot/tree/main/.claude/skills/mock-compensation
Command: npx skills add https://github.com/jhnhnck/attu-bot --skill mock-compensation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the issue of incomplete testing when mocking framework mechanisms, which can hide underlying bugs and lead to silent failures.

Core Features & Use Cases

  • Identify gaps in mocking critical framework behaviors such as extension loading, permission checks, and migrations.
  • Provide compensating tests to ensure real execution paths are validated, preventing silent errors during deployment.
  • Use case: When adding a new command, the Skill verifies that the extension loads correctly and permissions are properly checked, ensuring production reliability.

Quick Start

Use this Skill to verify that your tests include real integrations for framework behaviors like extension imports and permission predicates.

Frequently Asked Questions about mock-compensation

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

FAQPage Schema
How do I test framework behaviors that are hidden by mocking?

To test framework behaviors hidden by mocking, you need to identify gaps where extension loading, permission checks, and database migrations are bypassed. Compensating tests validate these real execution paths to prevent silent failures during deployment.

Why does mocking framework mechanisms cause silent failures in production?

Mocking framework mechanisms causes silent failures because incomplete testing hides underlying bugs in critical areas like extension loading and permission checks, allowing errors to slip through development undetected and surface during deployment.

What is the best way to ensure comprehensive test coverage for framework mocks?

The best way to ensure comprehensive test coverage for framework mocks is to document testing gaps and provide compensating tests that verify real integrations, ensuring extension imports and permission predicates are properly validated.

How do I verify that extension loading and permission checks work when adding a new command?

To verify extension loading and permission checks when adding a new command, use compensating tests to validate that the extension loads correctly and permissions are properly checked, ensuring production reliability and preventing silent errors.

When do I need compensating tests for database migrations and permission predicates?

You need compensating tests for database migrations and permission predicates when your standard mocking framework bypasses these critical execution paths, creating testing gaps that could lead to silent failures and incomplete validation during deployment.