Download
(2MB)
Download
Updated: 10-09-09 09:05 AM
Updated:10-09-09 09:05 AM
Created:10-09-09 09:05 AM
Downloads:1,498
Favorites:7
MD5:

UnitTest Runner

Version: V1.0
by: Smacker [More]

Integrates luaUnit with a WoW API mock library to allow offline unit tests to be run.

All the required files are included in a simple example addon
Includes a dump function for integrating into your addon

To run the tests on Windowz:

  • navigate to the UnitTests directory
  • run the test.bat command file


To use in your own addon:

add a /xxxx dump option which calls
Code:
DumpaTruck:Dump()
in game you can now do /xxxx dump
and the current state will be dumped out to your SavedVariables/xxxx.lua when you log-out of WoW

copy that to the Dumps directory under UnitTests and rename it to something sensible
e.g. SoloPaladin.lua

Add your own unit tests to Test.lua, using an appropriate dump file to initialize the state

e.g.

Code:
self:SetupFor("SoloPaladin");
Not all WoW API calls have been implemented, however it is quite easy to add any missing ones both the the dump function and the WoWMock, please share any updates you make.

Optional Files (0)


There have been no comments posted to this file.
Be the first to add one.



Category Jump: