astral-sh/ruff

Cleanup Ruff's CLI tests

Open

#19.016 aperta il 28 giu 2025

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Rust (2088 fork)batch import
help wantedtesting

Metriche repository

Star
 (47.527 star)
Metriche merge PR
 (Merge medio 3g 8h) (573 PR mergiate in 30 g)

Descrizione

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

Guida contributor