astral-sh/ruff

Cleanup Ruff's CLI tests

Open

#19,016 opened on 2025年6月28日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)Rust (2,088 forks)batch import
help wantedtesting

Repository metrics

Stars
 (47,527 stars)
PR merge metrics
 (平均マージ 3d 8h) (30d で 573 merged PRs)

説明

Ruff's CLI integration tests (crates/ruff/tests) contain a lot of shared boilerplate code (shared between test functions but also test files). We should try to extract those into a more reusable testing infra. I think ty's CLI test infra works pretty well and we should try if we can use the same structure for ruff.

https://github.com/astral-sh/ruff/blob/1f27d53fd576e92a7d2cd4abc1761d6ad836d85b/crates/ty/tests/cli/main.rs#L600

コントリビューターガイド