# rust-analyzer

Contribution à rust-analyzer pour transmettre le test sélectionné à un runner personnalisé.

[HTML](https://hsjm.io/projects/rust-analyzer) · fr-FR

Rôle: Contributor

Type de projet: Upstream contribution

Équipe: Rust ecosystem

2026

[Voir le projet](https://github.com/rust-lang/rust-analyzer)

## Configuration d’un runner de test

> Contribution intégrée — PR #21978.

Cette contribution à rust-analyzer transmet au runner personnalisé le test choisi dans l’éditeur. Le runner peut ainsi conserver sa propre commande tout en ciblant le test sélectionné.

```json title=".vscode/settings.json"
{
  "rust-analyzer.runnables.test.overrideCommand": [
    "cargo", "test", "--release",
    "--package", "${package}",
    "${target_arg}", "${target}",
    "--", "${test_name}", "${exact}", "${include_ignored}"
  ]
}
```

