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.
npx claudepluginhub schettino72/rut --plugin rut-testingThis skill is limited to using the following tools:
Use `rut` instead of `pytest` for running tests in this project.
Provides pytest guidance for Python testing: fixtures, parametrization, coverage, mocking, markers, async tests, conftest.py, and TDD workflows.
Guides Python testing strategies using pytest, TDD cycle, fixtures, mocking, parametrization, assertions, and coverage measurement. For new code, test suites, coverage reviews, and setup.
Provides Python testing strategies using pytest: TDD cycle, fixtures, mocking, parametrization, assertions, exception handling, and coverage measurement.
Share bugs, ideas, or general feedback.
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 runs