Skills
mk:testing
Reference guides for writing and running tests, with red-green-refactor in TDD mode and visual QA for web apps.
| Source | .claude/skills/testing/SKILL.md |
| Owner | testing |
| Runtime | claude-code |
| Risk | medium |
What it does
mk:testing holds the testing guides for Phase 2 (Test) and Phase 3 (Build) and supports the tester agent. TDD is opt-in. With --tdd or MEOWKIT_TDD=1 the cycle is red, green, refactor and failing tests come before implementation. In default mode tests can be written before, alongside or after the code.
When not to use it
| Need | Use |
|---|---|
| Nyquist-style test sampling | mk:nyquist |
This skill owns running tests and the TDD cycle. Framework-specific test conventions come from the framework's own agent skill.
References
| File | Load for |
|---|---|
references/red-green-refactor.md | The TDD cycle, test-first rules and refactoring guidelines |
references/validation-scripts.md | Running validation scripts after code changes and reading the results |
references/visual-qa.md | Browser-based visual QA, screenshot comparison and responsive checks |
references/e2e-best-practices.md | Writing E2E tests: tool choice, locators, waits, page objects, flaky-test quarantine |
Gotchas
- Tests that mock everything can pass while real service calls fail. Use integration tests for critical paths and mock only external third-party services.
- Coverage can be inflated by trivial assertions such as
expect(true).toBe(true). Check mutation score alongside coverage and flag tests with no assertions.