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 Updated 55 repo stars

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 commit 6dc4870060

Frequently asked questions

npx get-skill add hugoduncan/task-test-review