run-python-tests

Run end-to-end Python tests via the project's build script.

6.2k|590|Updated May 5, 2016
One-click install
npx skills add https://github.com/RediSearch/RediSearch --skill run-python-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-python-tests
Source: https://github.com/RediSearch/RediSearch/tree/main/.skills/run-python-tests
Command: npx skills add https://github.com/RediSearch/RediSearch --skill run-python-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates validation of code changes by running end-to-end Python tests.

Core Features & Use Cases

  • End-to-end test execution to verify changes across the Python project.
  • Flexible scope: run all tests or target tests by file or individual test name.
  • Integrates with the project's build script and supports configurable TEST_TIMEOUT for quick verification or full runs.

Quick Start

Use the run-python-tests skill to run tests with a quick timeout:

  • Run all tests: ./build.sh RUN_PYTEST ENABLE_ASSERT=1 TEST_TIMEOUT=20
  • Run tests from a specific file: TEST="test_module.py"

Frequently Asked Questions about run-python-tests

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

FAQPage Schema
How do I run Python tests to validate code changes?

Run Python tests by executing your project's build script with the RUN_PYTEST command. Use ./build.sh RUN_PYTEST ENABLE_ASSERT=1 TEST_TIMEOUT=20 to run all tests with a 20-second timeout, or set TEST="test_module.py" to target specific test files for faster feedback during development.

Can I run specific Python tests instead of the entire test suite?

Yes, you can target individual test files or specific tests by setting the TEST variable. Specify TEST="test_module.py" to run tests from a single file, or name individual test functions to run only those tests, reducing validation time during focused development work.

What's the best way to control how long Python tests take to run?

Configure the TEST_TIMEOUT parameter in your build script command to set test duration limits. Use TEST_TIMEOUT=20 for quick verification during development or increase it for comprehensive test runs, allowing you to balance feedback speed against test completeness.

Do I need to manually run tests after making code changes?

The test automation skill integrates with your project's build script to run end-to-end Python tests automatically, eliminating manual test execution. This ensures code changes are validated against your full test suite without extra steps in your development workflow.

What happens if my Python tests timeout during validation?

If tests exceed the TEST_TIMEOUT threshold, they stop executing and report incomplete results. Adjust TEST_TIMEOUT higher for slower test suites or lower to catch performance regressions, allowing you to control trade-offs between thoroughness and feedback latency.

Can pytest run with assertions enabled for stricter validation?

Yes, use ENABLE_ASSERT=1 with your build script command to run pytest with assertions enabled. This catches assertion-based validations and catches logical errors your code changes may have introduced during end-to-end testing.