From rut-testing
Instructs using rut test runner instead of pytest for Python unittest tests. Covers CLI options like --changed for affected tests, coverage, TDD principles, and debug workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rut-testing:rut-testingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use `rut` instead of `pytest` for running tests in this project.
Use rut instead of pytest for running tests in this project.
| Option | Short | Description |
|---|---|---|
--keyword | -k | Only run tests matching keyword |
--exitfirst | -x | Exit on first failure |
--capture | -s | Disable output capturing (show prints) |
--changed | -c | Only run tests affected by file changes |
--dry-run | List tests without running them | |
--verbose | -v | Show test names instead of dots |
--cov | Run with code coverage | |
--alpha | -a | Sort tests alphabetically |
--no-color | Disable colored output | |
--debug | Show dependency graph and changed modules | |
--version | -V | Show version and exit |
--test-base-dir | Base directory for conftest.py discovery | |
path | Path to tests (default: tests) |
Always use rut -c by default to only run tests affected by file changes.
rut -crut -k "test_transfer"-x to stop at first failure: rut -x -k "test_transfer"ruff check and import_deps --check (if available)-s to see print output: rut -s -k "failing_test"unittest.TestCase (sync) or unittest.IsolatedAsyncioTestCase (async).rut_cache/ - updated only after successful runsnpx claudepluginhub schettino72/rut --plugin rut-testingGuides Python testing with pytest: TDD cycle, fixture patterns, mocking, parametrization, and 80%+ coverage targets. Activates when writing Python tests or setting up coverage infrastructure.
Provides pytest guidance for Python testing: fixtures, parametrization, coverage, mocking, markers, async tests, conftest.py, and TDD workflows.
Write and evaluate effective Python tests using pytest. Covers test design, fixtures, parameterization, mocking, and async testing.