Aller au contenu
Skillpedia
Tests5.8k · #14631

grade-tests

Ce qu’il fait

Cette compétence attribue une note de préparation et de qualité à une liste de tests choisis, et explique ce qu'il faut améliorer dans chacun. Elle s'adresse aux développeurs et aux relecteurs qui veulent un rapport court et clair sur des tests précis, comme ceux d'une demande de fusion.

Quand l’utiliser

  • ✓Quand un relecteur veut une note de qualité pour des tests précis dans une demande de fusion.
  • ✓Quand vous voulez vérifier qu'un test nommé est fiable.
  • ✓Quand un ensemble de tests nouveaux ou modifiés a besoin d'un rapport par test avec des améliorations suggérées.

Lien du skill

https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/grade-tests/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/grade-tests/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Note les trois nouveaux tests de cette demande de fusion et dis-moi ce qu'il faut améliorer dans chacun.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent lit chaque test fourni ainsi que le code qu'il couvre, applique une grille de notation fixe, puis indique un résultat, une note en lettre et des modifications suggérées pour chaque test.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Grade Tests

Assess a curated list of test methods and produce a compact, PR-comment-friendly report. The primary result is one of Pass, Failed, Uncertain, or Not applicable; an A-F quality grade remains secondary diagnostic information. The skill does not discover tests on its own — the caller (typically a PR automation workflow or a human reviewer holding a specific list) provides the tests or a bounded diff to assess.

After Step 0 admits a bounded scope, enforce these grading invariants:

  • With production context, load test-gap-analysis by name once before scoring, in per-test-read-only caller context. Read its owned composition reference; do not compute mutation evidence from this grading rubric or run its standalone workflow. Report N/A / unverified only when the dependency, reference, or required context is actually unavailable.
  • Any reported mutation inference must use Likely killed (inferred) or Candidate survivor (unverified), even when explained in prose.
  • Apply only the rubric below, not extra heuristics such as a duplicate-test penalty. Do not use sibling tests to alter the individual assessment.
  • A B quality grade does not require a Failed result; a complete focused test may have no actionable change.

Language-specific guidance: Read the caller-provided matching extension file, or the runtime-listed test-analysis-extensions catalog and its matching language file. The reference-only helper is not an invocable skill. If its files are absent, use the embedded rubric and pinned framework APIs; mark an essential unresolved framework construct Uncertain instead of guessing or searching installation directories.

Why a Decision Result Plus Quality Detail

PR reviewers need a simple answer to does this test need follow-up? The four-state result provides that decision; the existing A-F rubric explains its quality and severity.

When to Use

  • A PR automation workflow needs to post a decision on the tests introduced or modified in a pull request.
  • A reviewer has a specific list of tests (a file, a class, a method list, or a diff hunk) and wants per-test follow-up decisions rather than a suite report.
  • A maintainer wants to triage which of N tests in a contribution deserve follow-up improvements, with quality grades for resolved tests.

When Not to Use

  • The caller wants a full suite audit or comparative metrics — use test-anti-patterns (pragmatic) or test-smell-detection (formal) and let the test-engineer agent orchestrate its internal quality specialist.
  • The caller wants to write new tests — use test-engineer (any language) or writing-mstest-tests (MSTest specifically).
  • The caller wants to measure code coverage or CRAP scores — use coverage-analysis or crap-score (.NET only).
  • The caller wants to fix issues directly in test code — invoke the appropriate editing skill.
  • No specific list of tests is provided. Do not try to grade every test in the workspace; ask the caller for an explicit list or scope.

Inputs

Input Required Description
Test methods Yes A scope to grade. Provide one of: (a) an explicit list of test method names (fully-qualified, e.g. Namespace.ClassName.TestMethodName); (b) one or more file paths plus an explicit instruction to grade every test declared in those files; or (c) a diff hunk / PR identifier whose changed tests should be graded. File paths are recommended but optional when method names are unambiguous in the workspace. Ambiguous requests like "grade my tests" with no scope are rejected up-front (see Step 0); this skill is for curated input and does not auto-grade an entire workspace.
Test bodies / spans Recommended The exact source lines for each test method. If omitted, read them from the listed files.
Production code No The code under test, for judging whether assertions cover the claimed behavior. When unavailable, mark the mutation assessment N/A / unverified rather than guessing or deducting.
Language reference No A host-supplied path to the matching bundled test-analysis-extensions file. Read it directly instead of invoking its reference-only loader; do not substitute unverified framework guidance.
Diff context No When grading PR changes, the unified diff for each test method helps focus on what actually changed.

Step 0: Validate the input

Before

Questions fréquentes

Trouve-t-elle les tests toute seule ?

Non. Elle note les tests ou le périmètre de modifications que vous fournissez. La liste est donc choisie par vous ou par votre processus de revue.

La note en lettre est-elle le résultat principal ?

Non. Le résultat principal est Réussi, Échoué, Incertain ou Non applicable. La note en lettre est secondaire.

Modifie-t-elle mes tests ?

Non. Il s'agit d'une évaluation en lecture seule. Elle indique ce qu'il faut changer, sans modifier les tests.

Détails

Description originale de l’auteur

Grade curated individual tests for readiness, A-F quality and improvements. ALWAYS USE FOR: grade tests, review only a named test, per-test readiness or quality bands for supplied methods, bodies, file spans or bounded PR diffs, including existing tests. Return Pass/Failed/Uncertain/Not applicable; unresolved/empty scopes omit grades. Compose read-only per-test evidence. Polyglot. DO NOT USE FOR: suite audits (test-engineer/test-anti-patterns), concrete fix/feature detection proof (test-value-evidence), writing/fixing tests, or coverage.

repo: dotnet/skills

Popularité

Étoiles GitHub
5.8k
Position au classement
#14631
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires