running-tests

Run test suites and redirect output to a log file for concise summaries.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/straub/agent-skills --skill running-tests-straub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: running-tests
Source: https://github.com/straub/agent-skills/tree/main/skills/running-tests
Command: npx skills add https://github.com/straub/agent-skills --skill running-tests-straub

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Running tests can produce verbose, lengthy output that risks overwhelming the AI's context window. This Skill standardizes how tests are executed and how their results are captured, reducing context drift.

Core Features & Use Cases

  • Redirects test output to a log file to preserve context for subsequent analysis.
  • Supports common test runners such as npm test, node --test, pytest, and similar tooling.
  • Enables quick review of failures and summaries without exposing the full raw logs in ongoing conversations.

Quick Start

Use the running-tests skill to execute a test suite and save the output to /tmp/test-output.txt, then inspect the results with simple commands.

Frequently Asked Questions about running-tests

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

FAQPage Schema
How do I capture pytest output to a log file and prevent context overflow?

To capture pytest output and prevent context overflow, redirect stdout and stderr to a log file like /tmp/test-output.txt. This preserves context by keeping verbose test logs out of your conversation.

What's the best way to run long-running npm test suites without overwhelming the context window?

The best way to run long-running npm test suites without overwhelming the context window is redirecting output to a log file. This approach captures all test results while providing a concise post-run summary for analysis.

Does this test output redirection method work with node --test and other test runners?

Yes, this test output redirection method works with node --test, npm test, pytest, and similar tooling. It standardizes test execution by redirecting stdout and stderr to a log file for any supported test runner.

Why does running verbose test suites cause context drift and how can I avoid it?

Running verbose test suites causes context drift because lengthy output overwhelms the context window. Avoid it by redirecting stdout and stderr to a log file, enabling quick review of failures without exposing full raw logs.

How do I review test failures from a log file after redirecting output?

To review test failures from a log file after redirecting output, inspect the saved file at /tmp/test-output.txt. The process provides a concise post-run summary for analysis without exposing full raw logs in ongoing conversations.