Write and run unit tests for WoW addons using Busted and the Mechanic test framework. Covers test structure, mocking WoW APIs, and coverage analysis. Use when adding tests, fixing bugs with regression tests, or improving coverage. Triggers: test, unit test, coverage, Busted, mock, TDD, sandbox.
Expert guidance for testing WoW addons using Sandbox, Desktop, and In-Game methods.
MANDATORY: Always use CLI commands before manual exploration.
| Task | Command |
|------|---------|
| Generate Stubs | mech call sandbox.generate |
| Run Sandbox Tests | mech call sandbox.test -i '{"addon": "MyAddon"}' |
| Run Busted Tests | mech call addon.test -i '{"addon": "MyAddon"}' |
| Test Coverage | mech call addon.test -i '{"addon": "MyAddon", "coverage": true}' |
| Sandbox Status | mech call sandbox.status |
| Request type | Load reference | |--------------|----------------| | Sandbox, Busted, In-Game guides | ../../docs/integration/testing.md | | Busted spec patterns | references/busted-patterns.md | | Mocking WoW APIs | references/wow-mocking.md | | MechanicLib test registration | ../../docs/integration/mechaniclib.md |
describe("MyAddon Core", function()
it("calculates values correctly", function()
local result = Core.Calculate(10, 20)
assert.equals(30, result)
end)
end)
# Generate stubs once
mech call sandbox.generate
# Run tests frequently
mech call sandbox.test -i '{"addon": "MyAddon"}'
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer