MCPInstall

ln-782-test-runner

Executes all test suites and reports results with coverage. Use when verifying that test infrastructure works after bootstrap.

Installs
412
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-782-test-runner
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads ln-782-test-runner automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Paths: File paths (references/, ../ln-*) are relative to this skill directory.

MANDATORY READ: Load references/ci_tool_detection.md — test framework registry, compact flags (--tb=short -q, --reporter=json), and normalization chain.

ln-782-test-runner

Type: L3 Worker Category: 7XX Project Bootstrap


Purpose

Detects test frameworks, executes all test suites, and reports results including pass/fail counts and optional coverage.

Scope:

  • Auto-detect test frameworks from project configuration
  • Execute test suites for all detected frameworks
  • Parse test output for pass/fail counts
  • Generate coverage reports when enabled

Out of Scope:

  • Building projects (handled by ln-781)
  • Container operations (handled by ln-783)
  • Writing or fixing tests

When to Use

ScenarioUse This Skill
Standalone-capableYes
Standalone test executionYes
CI/CD pipeline test stepYes
Build verification neededNo, use ln-781

Workflow

Step 1: Detect Test Frameworks

Identify test frameworks from project configuration files.

MarkerTest FrameworkProject Type
vitest.config.*VitestNode.js
jest.config.*JestNode.js
*.test.ts in package.jsonVitest/JestNode.js
xunit / nunit in *.csprojxUnit/NUnit.NET
pytest.ini / conftest.pypytestPython
*_test.go filesgo testGo
tests/ with Cargo.tomlcargo testRust

Step 2: Execute Test Suites

Run tests for each detected framework.

FrameworkExecution Strategy
VitestRun in single-run mode with JSON reporter
JestRun with JSON output
xUnit/NUnitRun with logger for structured output
pytestRun with JSON plugin or verbose output
go testRun with JSON output flag
cargo testRun with standard output parsing

Step 3: Parse Results

Extract test results from framework output.

MetricDescription
totalTotal number of tests discovered
passedTests that completed successfully
failedTests that failed assertions
skippedTests marked as skip/ignore
durationTotal execution time

Step 4: Generate Coverage (Optional)

When coverage enabled, collect coverage metrics.

FrameworkCoverage Tool
Vitest/Jestc8 / istanbul
.NETcoverlet
pytestpytest-cov
Gogo test -cover
Rustcargo-tarpaulin

Coverage Metrics:

MetricDescription
linesCoveredLines executed during tests
linesTotalTotal lines in codebase
percentageCoverage percentage

Step 5: Report Results

Return structured results to orchestrator.

Result Structure:

FieldDescription
suiteNameTest suite identifier
frameworkDetected test framework
statuspassed / failed / error
totalTotal test count
passedPassed test count
failedFailed test count
skippedSkipped test count
durationExecution time in seconds
failuresArray of failure details (test name, message)
coverageCoverage metrics (if enabled)

Error Handling

Error TypeAction
No tests foundReport warning, status = passed (0 tests)
Test timeoutReport timeout, include partial results
Framework errorLog error, report as error status
Missing dependenciesReport missing test dependencies

Options

OptionDefaultDescription
skipTestsfalseSkip execution if no tests found
allowFailuresfalseReport success even if tests fail
coveragefalseGenerate coverage report
timeout300Max execution time in seconds
paralleltrueRun test suites in parallel when possible

Critical Rules

  1. Run all detected test suites - do not skip suites silently
  2. Parse actual results - do not rely only on exit code
  3. Include failure details - provide actionable information for debugging
  4. Respect timeout - prevent hanging on infinite loops

Monitor Integration (Claude Code 2.1.98+)

MANDATORY READ: Load references/monitor_integration_pattern.md

For test suites expected to run >30 seconds, use Monitor to stream failures in real-time:

PatternCommandtimeout_ms
Stream failures{test_command} 2>&1 | grep --line-buffered -E 'FAIL|Error|✗|AssertionError'timeout * 1000 (from Options)
Full output{test_command} 2>&1timeout * 1000

React to first failure immediately while remaining tests continue running.

Fallback: if Monitor is unavailable (Bedrock/Vertex), use Bash(run_in_background=true).


Definition of Done

  • All test frameworks detected
  • All test suites executed
  • Results parsed and structured
  • Coverage collected (if enabled)
  • Results returned to orchestrator

Reference Files

  • Parent: ../ln-780-bootstrap-verifier/SKILL.md

Version: 2.0.0 Last Updated: 2026-01-10

FAQ

What does the ln-782-test-runner skill do?

Executes all test suites and reports results with coverage. Use when verifying that test infrastructure works after bootstrap.

How do I install ln-782-test-runner?

Run npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-782-test-runner in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ln-782-test-runner/ (personal) or .claude/skills/ln-782-test-runner/ (project).

Which AI agents can use ln-782-test-runner?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is ln-782-test-runner safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains ln-782-test-runner?

It is published by levnikolaevich in levnikolaevich/claude-code-skills. It has 412 recorded installs.

More from levnikolaevich/claude-code-skills

View all →

ln-100-documents-pipeline

levnikolaevich/claude-code-skills

Creates complete project documentation system (project docs, reference, tasks, tests). Use when bootstrapping docs from scratch or regenerating all.

Docs & Writing479 installs

ln-620-codebase-auditor

levnikolaevich/claude-code-skills

Open the skill to read its SKILL.md instructions.

ln-775-api-docs-generator

levnikolaevich/claude-code-skills

Configures Swagger/OpenAPI documentation for backend APIs. Use when adding interactive API docs to a project.

Backend & APIs432 installs

ln-624-code-quality-auditor

levnikolaevich/claude-code-skills

Open the skill to read its SKILL.md instructions.

413 installs

ln-634-test-coverage-auditor

levnikolaevich/claude-code-skills

Open the skill to read its SKILL.md instructions.

Testing & QA401 installs

ln-201-opportunity-discoverer

levnikolaevich/claude-code-skills

Open the skill to read its SKILL.md instructions.

398 installs

Popular testing & qa skills

View category →

tdd

mattpocock/skills

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

Testing & QA1.2M installs

grilling

mattpocock/skills

Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

Testing & QA996.2K installs

migrate-to-shoehorn

mattpocock/skills

Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.

Testing & QA484.1K installs

run-train

lllllllama/rigorpilot-skills

Rigor Train skill for deep learning research repositories. Use when a documented or selected training command should be run conservatively for startup verification, short-run verification, full kickoff, or resume, with command, config, seed, log, checkpoint, status, and metric evidence written to standardized trainoutputs/. Do not use for environment setup, exploratory sweeps, speculative idea implementation, or end-to-end orchestration.

Testing & QA337.8K installs

test-driven-development

obra/superpowers

Use when implementing any feature or bugfix, before writing implementation code

Testing & QA261.8K installs

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

Testing & QA216.8K installs