testing

Enforces verifiability rules for unit and end-to-end tests across Vitest, Jest, and Playwright suites.

1|Updated Jan 14, 2024
One-click install
npx skills add https://github.com/Eyhenij/rt-tools --skill testing-eyhenij
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/Eyhenij/rt-tools/tree/main/.claude/skills/testing
Command: npx skills add https://github.com/Eyhenij/rt-tools --skill testing-eyhenij

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Tests often look green while proving nothing: titles promise more than bodies assert, negative assertions pass on typos, environment-switched tests count as coverage, and hard-coded fixture dates expire silently. This rule defines what actually counts as verification when editing test files and end-to-end suites. ## Core Features & Use Cases - Scenario-to-test binding: Names scenario ids in test titles, marks uncovered scenarios with reasons, and flags tests referencing nonexistent scenarios. - Pure-function discipline: Moves decisions out of components and services into pure functions checked by call, with time passed as a parameter instead of read from the machine clock. - End-to-end and snapshot rules: Covers stand seeding, browser raster determinism, snapshot reference handling, mask width pitfalls, and fail-open guard design. - Use Case: When adding a spec for an Angular component or a Playwright end-to-end test, load this rule to decide whether the check belongs in a unit test or an end-to-end path, how to title it, and which pitfalls (flaky waits, dead allowlist entries, silent skips) to avoid. ## Quick Start Load the testing rule before editing any spec file or end-to-end suite and follow its flow to decide how the new behavior must be verified.

Frequently Asked Questions about testing

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

FAQPage Schema
What are the limitations of negative assertions in tests?

An assertion of absence is green even with a typo in the selector or a renamed key, since nothing distinguishes a correct miss from a wrong target. Pair every negative assertion with a positive one confirming the searched place exists.