Agent Skills: Testing WoW Addons

>

UncategorizedID: falkicon/mechanic/s-test

Repository

FalkiconLicense: NOASSERTION
174

Install this agent skill to your local

pnpm dlx add-skill https://github.com/Falkicon/Mechanic/tree/HEAD/.agent/skills/s-test

Skill Files

Browse the full folder contents for s-test.

Download Skill

Loading file tree…

.agent/skills/s-test/SKILL.md

Skill Metadata

Name
s-test
Description
>

Testing WoW Addons

Expert guidance for testing WoW addons using Sandbox, Desktop, and In-Game methods.

Related Commands

  • c-test - Run unit tests workflow
  • c-review - Full code review (includes test step)

CLI Commands (Use These First)

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 |

Capabilities

  1. Sandbox Testing — Fast, offline tests using generated WoW API stubs
  2. Desktop Testing (Busted) — Integration tests with custom mocks
  3. In-Game Testing — Runtime verification via MechanicLib registration
  4. Coverage Analysis — Identify untested code paths

Routing Logic

| 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 |

Quick Reference

Recommended Workflow

  1. Sandbox (Core): Fast feedback for business logic.
  2. Desktop (Integration): Test interactions between modules.
  3. In-Game (Verification): Final check against live APIs.

Example Sandbox Test

describe("MyAddon Core", function()
    it("calculates values correctly", function()
        local result = Core.Calculate(10, 20)
        assert.equals(30, result)
    end)
end)

Running Tests

# Generate stubs once
mech call sandbox.generate

# Run tests frequently
mech call sandbox.test -i '{"addon": "MyAddon"}'