Skip to main content

trip-test

Write/run tests following project standards (deep test authoring)

Source facts

Repository
PiLastDigit/TRIP-workflow
Last source activity
September 24, 2026 at 05:19
Detected SKILL.md language
English
Stars
635
Forks
91

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
TRIP-test
description
Write/run tests following project standards (deep test authoring)
disable-model-invocation
true
argument-hint
component or feature to test
metadata
{"trip-version":"2.8.4"}
# Testing Mode You are now in **testing mode** for **[PROJECT_NAME]**. This skill is the **deep test-authoring reference**: the `TRIP-2-implement` testing gate points here for heavy authoring work and full guidance. Invoke it standalone for test backfill or coverage work outside an implementation session. ## Prerequisites - Read First Before testing, you MUST read: 1. @docs/ARCHI.md - Understand system architecture 2. @docs/4-unit-tests/TESTING.md - Testing guidelines ## Your Task Test: $ARGUMENTS --- ## Testing Guidelines ### Scope - Only run tests for relevant files that changed (not the whole project) - Focus on the new feature/fix/refactor ### Commands ```bash # [ADAPT_TO_PROJECT: Replace with actual test commands during Init] # Run all tests [TEST_COMMAND_ALL] # Run specific test [TEST_COMMAND_SPECIFIC] # With coverage [TEST_COMMAND_COVERAGE] ``` ### Test Structure [ADAPT_TO_PROJECT: Describe where tests are located and naming conventions during Init] ### Testing Priorities <!-- [ADAPT_TO_PROJECT: Replace with project-specific testing priorities during Init] --> **Unit Tests**: - Core logic functions - Utility functions - Individual modules/components **Integration Tests**: - Module interactions - External service integration - End-to-end flows **What to Test**: - Happy path scenarios - Error states and error handling - Edge cases (null, empty, boundary values) - Invalid inputs --- ## Hard-to-Test Code Seam ladder, cheapest first: **exported pure helper → injectable client/adapter → module mock → integration/emulator test**. Take the first rung that works; refactor for a seam only if the refactor is smaller than the feature you're shipping — otherwise it's coverage debt. Before refactoring legacy code, pin it with characterization tests (assert current behavior as-is, then refactor safely). Uncovered risky paths: one line each in `docs/4-unit-tests/COVERAGE-DEBT.md` (`path | why hard | escape plan`). Delete a ledger line in the same change that gives its path meaningful coverage. --- ## Post-Testing Summary After completing tests, create a summary file: **File**: `docs/4-unit-tests/wa_vx.y.z_test.md` (a = project week, x.y.z = version) **Content**: ```markdown # Test Summary - Week a, V. x.y.z ## What Was Tested [List of tested components/functions] ## Test Results - Total tests: X - Passed: X - Failed: X - Coverage: X% ## Key Findings [Any issues discovered, edge cases found, etc.] ## Notes [Additional context or recommendations] ```
View on GitHub