microsoft/vscode
Tests unitaires
Unit Tests
3 825e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.
Description
Quand vous travaillez dans le dépôt VS Code et devez lancer des tests unitaires, ce Skill vous guide d'abord avec l'outil runTests, puis avec les scripts shell (test.sh ou test.bat) si nécessaire. Il couvre l'essentiel : passer des chemins de fichiers, filtrer les tests avec grep.
Voir la description originale (anglais)
When you're working in the VS Code repository and need to run unit tests, this skill walks you through the runTests tool first, then falls back to the shell scripts (test.sh or test.bat) when necessary. It covers the practical stuff: passing file paths, filtering tests with grep, running globs, and collecting coverage. The guidance on bare file paths versus the explicit --run flag is helpful since the scripts accept both. One thing to note: these scripts only handle unit tests, not integration tests, and you need to have your build running or you'll be testing stale compiled output. It's a solid reference for the common flags and patterns without having to dig through script source code.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.