Expert guidance for testing WoW addons using Sandbox, Desktop, and In-Game methods.
| 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 |
| 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 |
Scrivi ed esegui unit test per i componenti aggiuntivi di WoW utilizzando Busted e il framework di test Mechanic. Copre la struttura dei test, le API finte di WoW e l'analisi della copertura. Da utilizzare quando si aggiungono test, si correggono bug con test di regressione o si migliora la copertura. Trigger: test, test unitario, copertura, Busted, mock, TDD, sandbox. Fonte: falkicon/mechanic.