Validate code changes by intelligently selecting and running the appropriate test suites. Use this when editing code to verify changes work correctly, run tests, validate functionality, or check for regressions. Automatically discovers affected test suites, selects the minimal set of venvs needed for validation, and handles test execution with Docker services as needed.
The 'run-tests' skill automates the process of validating code changes by intelligently selecting and executing the appropriate test suites. It helps developers ensure that their code modifications do not break existing functionality, cover new features, or fix bugs by running the minimum necessary set of tests. This skill eliminates the need for manually selecting tests or running excessive test suites, making the validation process faster and more efficient. It integrates with Docker services as needed and automatically discovers affected test suites based on changes in the codebase, ensuring a streamlined testing workflow.
Use the 'run-tests' skill when you've made changes to source code files, fixed bugs, added features, modified test infrastructure, or want to ensure that your changes don't break existing functionality.
No, it is recommended not to run pytest directly as it bypasses the project's test infrastructure. Always use 'scripts/run-tests' or 'riot' via 'scripts/ddtest' for proper test execution.
The skill uses the 'scripts/run-tests' script to list the available test suites that match the modified files. It then selects the minimal set of venvs necessary for validation, considering factors like the impact of the changes on different parts of the codebase.
Yes, you can specify files explicitly or use the '--dry-run' option to preview which tests would be run before actually executing them. For test-only changes, you can also use pytest arguments to run specific tests.
Yes, the skill can handle test execution with Docker services when necessary, ensuring compatibility across different environments.
Quick Setup:
.claude/skills/Repository
Microck/ordinary-claude-skills