← Zurück zu Spieleentwickler

Skill · Version 1.0.0

Aussagekraft von Tests prüfen

Bewertet Tests nach tatsächlich belegtem Verhalten und ihrer Fähigkeit, realistische Regressionen geänderten Codes zu erkennen.

test-adequacy-review

Teammitglieder mit diesem Skill

Entdecke, wie der Skill hilft

Wann ist der Skill hilfreich?

Nutze ihn bei großen grünen Testsuiten mit Zweifel an tatsächlich geprüften Anforderungen oder Fehlerfällen.

Wobei hilft er dir?

  • Prüft, ob Tests den geänderten Produktivpfad tatsächlich ausführen.
  • Bewertet, ob Assertions gewünschtes Verhalten von plausiblen Defekten unterscheiden.
  • Benennt fehlende Fehlerabdeckung ohne unbelegte Produktfehler zu behaupten.

Das könntest du fragen

Prüfe, ob diese erfolgreichen Tests die gemeldete doppelte Rechnung erkennen würden. Zeige isoliert das duplikaterzeugende Verhalten. Besteht die Suite trotzdem, benenne fehlende Aussageprüfung oder umgangenen Produktionspfad.

Ausführliche Dokumentation

Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.

Details…Weniger anzeigen

Test Adequacy Review

A passing test suite is only as trustworthy as what its assertions actually prove. Never equate test file count or line coverage with correctness; inspect what the tests actually execute and assert.

Workflow

  1. Verify that tests exercise the real modified code path:
    • Check whether the test calls the actual production function, endpoint, or component, or whether over-mocking replaces the very logic that was changed (testing the mock instead of the code).
    • Ask the mutation question: "If I reverted the core logic line in the production diff or flipped an if condition, would at least one test in this PR fail?"
  2. Audit assertion quality and specificity:
    • Flag weak or tautological assertions (expect(res).toBeDefined(), expect(fn).not.toThrow(), or only checking HTTP 200 without verifying the returned payload or persisted database state).
    • Verify that tests assert both positive outcomes (the right record changed to the right value) and negative invariants (other tenants' records, unauthorized fields, or rejected states remained untouched).
  3. Check coverage of failure, boundary, and regression cases:
    • Confirm that the test suite covers:
      • Each explicit acceptance criterion from the specification.
      • Key rejection paths (invalid input, unauthorized actor, conflicting version/state).
      • For bug fixes: a deterministic regression test that reproduces the exact failure mode before the fix and passes after.
  4. Distinguish missing tests from proven product bugs:
    • A missing or weak test is a verification gap, not automatically proof that the production code is broken. Report missing test coverage clearly as a test-adequacy finding and specify the exact scenario that needs a test.

Enthaltene Dateien 1

  • SKILL.md