Install
openclaw skills install @anderskev/exunit-code-reviewReviews ExUnit test code for proper patterns, boundary mocking with Mox, and test adapter usage. Use when reviewing _test.exs files or test helper configurations.
openclaw skills install @anderskev/exunit-code-review| Issue Type | Reference |
|---|---|
| Async tests, setup, describe, tags | references/exunit-patterns.md |
| Behavior-based mocking, expectations | references/mox-boundaries.md |
| Bypass, Swoosh, Oban testing | references/test-adapters.md |
| What to mock vs real, Ecto sandbox | references/integration-tests.md |
Mock at external boundaries:
DO NOT mock internal code:
async: true unless sharing database state| Issue | Flag ONLY IF |
|---|---|
| Not async | Test actually needs shared state |
| Missing mock | External call exists AND no mock/bypass |
| Mock internal | Module being mocked is internal code |
Complete in order. Do not emit a finding until the prior step passes for that issue.
Evidence from the file — Open the test module (or helper) and tie the claim to concrete lines.
[FILE:LINE] and a one-line factual description of what is on that line (or an adjacent line you name), not a generic style complaint.ExUnit false-positive veto — Check this skill’s Valid Patterns and Context-Sensitive Rules for the case.
Cross-protocol verification — Apply review-verification-protocol (e.g. read full function/block, search usages before “unused” claims) to that same finding.
Use [FILE:LINE] ISSUE_TITLE per finding after Gates (sequence) and the linked protocol are satisfied.