run-python-tests — Claude Code skill: tests and setup
The run-python-tests skill runs end-to-end Python tests after code changes and gathers failure details. Use it after the build and Rust test stages pass.
no license ★ 6,244 updated 2026-10-29
npx skills add RediSearch/RediSearch --skill run-python-tests -a claude-codeWhat run-python-tests does
The skill starts Python tests through ./build.sh RUN_PYTEST ENABLE_ASSERT=1. Its first pass uses TEST_TIMEOUT=20 for quick feedback. You can target the whole suite, one file, several files, or one test with the filename:test_name form.
A failed test produces runner output and a log under tests/pytests/logs. The skill then prepares a report with passed, failed, and skipped test counts, Python-side error messages, server stack details, and each log path. Rust panics include the Rust message and backtrace; C crashes include the C backtrace.
Run it after the build and Rust tests have passed. If a quick run times out, related tests can be rerun without TEST_TIMEOUT; when relevance is unclear, the skill asks whether to run them again without the limit.
What it helps with
- run the full end-to-end Python suite
- check tests from a selected file
- rerun one test without a timeout
- trace a Redis server failure
- prepare a test result report
Example prompts for the agent
- Run a quick pass of all Python tests after my changes.
- Check
test_query_thread_crashfromtest_crashwithout a time limit. - Run the tests from
test_crashandtest_gc, then prepare a failure report.
How to install run-python-tests
1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill run-python-tests -a claude-code2Manually: put the files in place
~/.claude/skills/run-python-tests/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/run-python-tests/
1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill run-python-tests -a codex2Manually: put the files in place
.agents/skills/run-python-tests/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill run-python-tests -a cursor2Manually: put the files in place
.cursor/skills/run-python-tests/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install RediSearch/RediSearch .skills/run-python-tests/SKILL.md2Manually: put the files in place
.github/skills/run-python-tests/SKILL.md1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill run-python-tests -a gemini-cli2Platform CLI
gemini skills install https://github.com/RediSearch/RediSearch --path .skills/run-python-testsManually: put the files in place
.devin/skills/run-python-tests/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill run-python-tests -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about run-python-tests
How do I install run-python-tests in Claude Code?
Run npx skills add RediSearch/RediSearch --skill run-python-tests -a claude-code, then check ~/.claude/skills/run-python-tests/SKILL.md.
What does run-python-tests do?
It runs end-to-end Python tests after changes, accepts file or test targets, and builds a report from the results. Test logs are stored under tests/pytests/logs.
What is TEST_TIMEOUT=20 used for?
It limits each test during the quick verification pass. A timed-out test related to the current change can be run again without that setting.