mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-18 11:41:21 +00:00
## Summary This change to the mdtest runner makes it easy to run on a subset of tests/files. For example: ``` ▶ uv run crates/ty_python_semantic/mdtest.py implicit running 1 test test mdtest__implicit_type_aliases ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 281 filtered out; finished in 0.83s Ready to watch for changes... ``` Subsequent changes to either that test file or the Rust source code will also only rerun the `implicit_type_aliases` test. Multiple arguments can be provided, and filters can either be partial file paths (`loops/for.md`, `loops/for`, `for`) or mangled test names (`loops_for`): ``` ▶ uv run crates/ty_python_semantic/mdtest.py implicit binary/union running 2 tests test mdtest__binary_unions ... ok test mdtest__implicit_type_aliases ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 280 filtered out; finished in 0.85s Ready to watch for changes... ``` ## Test Plan Tested it interactively for a while |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||
| mdtest.py | ||
| mdtest.py.lock | ||