running-tests
4
总安装量
2
周安装量
#52957
全站排名
安装命令
npx skills add https://github.com/straub/agent-skills --skill running-tests
Agent 安装分布
opencode
2
github-copilot
2
claude-code
2
replit
1
amp
1
kimi-cli
1
Skill 文档
Running Tests
Test suites can sometimes take a very long time to run, consume lots of system resources, and generate lots of output. To save time and preserve your context, follow this simple guide.
When to Use This Skill
â Use if:
- Running any test command (npm test, node –test, pytest, etc.)
- Expecting more than 5 lines of output
- Want to preserve context tokens for further analysis
â Don’t use if:
- Running a single quick test file (< 1 second)
- Already redirecting output manually
Guidelines
- Always redirect test output to a file!
npm test > /tmp/test-output.txt 2>&1
- Analyze that file as needed after the run is finished
tail -n20 /tmp/test-output.txt
wc -l /tmp/test-output.txt
grep 'fail' /tmp/test-output.txt
Default Pattern
Every test run should follow this pattern:
npm test > /tmp/test-output.txt 2>&1
tail -20 /tmp/test-output.txt