Task Test Review

Review a task implementation's tests. Use before closing a task, to check the implementation tests quality. Use when the user asks "review task tests".

hugoduncan 6dc4870 683 B Updated

File contents

λ review_tests(task). well_formed(tests(task)) ∧ ∀b ∈ observable_behaviour(design(task)). ∃t ∈ tests(task). covers(t, b) ∧ ∀d ∈ infra_deps(tests(task)). injectable(d) ∧ nullable(d) ∧ ¬mock(d) ∧ ¬stub(d)

  • inject state, not behaviour
  • limit test coverage to the changes introduced by the task.
  • no test-only code paths in production
  • no test-only arguments or options
  • no tests covering tests
  • no tests preventing changes in implementation decisions

hugoduncan/psi/tree/main/.psi/skills/task-test-review commit 6dc4870060

Frequently asked questions

npx skillmds@latest add hugoduncan/task-test-review