astral-sh/ruff

Cleanup Ruff's CLI tests

Offen

#19.016 geöffnet am 28.06.2025

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.088 Forks)batch import
help wantedtesting

Repository-Metriken

Stars
 (47.527 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 3T 8h) (573 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide