Aller au contenu
Skillpedia
Tests5.8k · #14641

test-value-evidence

Ce qu’il fait

Cette compétence vérifie si les tests d'une modification donnée remarqueraient que le nouveau comportement est erroné ou absent. Elle s'adresse aux relecteurs qui veulent une preuve qu'une correction de bogue ou une fonctionnalité est protégée par ses tests.

Quand l’utiliser

  • ✓Quand une demande de fusion modifie un comportement et que vous voulez une preuve que ses tests détecteraient un résultat erroné.
  • ✓Quand un test de non-régression doit échouer sur l'ancien code et réussir sur le code corrigé.
  • ✓Quand vous avez besoin de preuves liées à un commit ou une demande de fusion précise plutôt qu'une revue générale des tests.

Lien du skill

https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/test-value-evidence/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/test-value-evidence/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

“Vérifie si les nouveaux tests de cette demande de fusion échoueraient sur l'ancien code et réussiraient sur le code corrigé.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent identifie le comportement modifié et ses tests liés pour la révision indiquée, puis rassemble des preuves avant et après qui montrent si les tests détectent le comportement absent ou erroné.

Contenu technique (SKILL.md original)

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

Test-value evidence

A passing test proves little unless it detects the relevant wrong behavior. Assess the changed contracts and their directly related tests, not the entire repository. Discover and follow the repository's instructions, pinned toolchain, test commands, assertion conventions, and execution permissions. This skill does not authorize edits in a read-only review, execution of untrusted code, workflow dispatch, publication, or access to another session's checkout.

Inputs and boundaries

Discover the requested diff/revision, production entry points, tests, fixtures, and available execution artifacts. If the change cannot be identified, report the missing scope instead of grading the workspace. Existing unchanged tests can suffice; a source-only diff is not automatically untested.

Use test-gap-analysis for general existing-suite blind spots, grade-tests for curated per-test readiness/quality, and existing repository mutation tooling for mutation campaigns. Do not start a second mutation engine or require full-suite mutation testing for every change. This skill is self-contained: sibling skills are optional routing destinations, not required dependencies.

Workflow

  1. Bind the contract to the tested revision. For a PR, record its merge base and exact head SHA. For a commit, record the selected parent and commit; identify the parent explicitly for a merge commit. For uncommitted work, record the base SHA plus a reproducible patch identity (saved patch/hash, including relevant untracked files), not a fictitious committed revision. Evidence expires after relevant source, tests, helpers, configuration, or package changes unless revalidated.

    For each distinct behavior change, map: requirement -> input/sequence -> expected public outcome -> production entry point -> named test/data case -> distinguishing assertion. Derive the expected outcome independently from requirements or supported API/protocol semantics, not the implementation or the test's current value. Check build/package/configuration behavior, deleted/renamed code, removed tests, and shipping consumers as well as source. Include positive, negative, boundary, compatibility, cancellation, cleanup, and multi-module cases only where relevant to the changed contract.

    A mock of the changed component, self-comparison, or expected value computed by the same production algorithm does not provide an independent oracle.

  2. Choose the meaningful counterfactual.

    Change Counterfactual Required observation
    Bug fix Keep the regression test and restore the actual pre-fix defect. The test fails for that defect, then passes with the fix.
    New feature Disable/remove or corrupt the behavior, retaining the API shape and setup needed to build. An assertion detects absent/wrong behavior, then passes with the feature.
    Stronger/test-only coverage Introduce one plausible wrong public outcome. The strengthened test detects it; the unmodified product passes.
    Behavior-preserving refactor Compare the preserved contract before and after; optionally probe a relevant fault. Preservation tests pass on both revisions; passing before is expected.
    Documentation/generated metadata only Establish whether an executable contract changed. Not applicable only with a concrete reason; generated or build metadata can change behavior.

    For a fix, prefer the real pre-fix implementation with the same regression test, setup, dependencies, and inputs. If new APIs prevent that combination from compiling, restore only the defective behavior in the head version. Call this a targeted counterfactual, not a run on the base revision. Record its exact patch/hash. Never change assertions to manufacture red.

    For a feature, a missing-symbol compiler error is not behavioral proof. Choose a buildable no-op, disabled registration, old branch, or wrong output. A compiler/analyzer diagnostic can be valid behavior only when an executed harness asserts that exact diagnostic or its absence.

    Prefer small plausible faults: restore the old boundary, drop a required output, skip a callback, ignore an option, or return the wrong value. An equivalent mutation is not a gap. A crash, timeout, or exception counts only when it is the intended contract signal and diagnostics attribute it to the fault, not setup, discovery, fla

Questions fréquentes

Examine-t-elle tout le dépôt ?

Non. Elle se concentre sur la modification identifiée et sur les tests qui s'y rattachent directement.

Exécute-t-elle du code non fiable ?

Non. La compétence n'exécute pas de code non fiable et ne modifie pas les fichiers pendant une revue en lecture seule.

Est-ce la même chose que le test de mutation ?

Pas exactement. Elle utilise les outils existants du dépôt et vérifie la modification elle-même, sans lancer un nouveau moteur de mutation.

Détails

Description originale de l’auteur

Assess tests for an identified code or test change, feature, PR or commit. USE FOR: review changed behavior or regression tests, prove pre-fix/missing behavior is detected, revision-bound red-green evidence. Polyglot. DO NOT USE without an identified change: hypothetical mutations or general suite blind spots (test-gap-analysis). Also exclude per-test readiness/A-F grades (grade-tests), coverage (coverage-analysis), new suites (code-testing), or mutation engines.

repo: dotnet/skills

Popularité

Étoiles GitHub
5.8k
Position au classement
#14641
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