mirroar / wowunit Goto Github PK
View Code? Open in Web Editor NEWA unit testing framework to test AddOns from within World of Warcraft
A unit testing framework to test AddOns from within World of Warcraft
File name: frame.lua
http://www.2shared.com/file/RQU261xE/framelua20110917.html
File name: README.md
http://www.2shared.com/file/wFxahqQb/READMEmd20110917.html
To illustrate here is some code:
-- in file: Core.lua
function addon_obj:to_be_tested(name)
if name == "TEST" then
return "TEST"
else
return nil
end
end
-- in file: test_suite.lua
wowUnit:assert(addon_obj:to_be_tested("TEST"),"Will succeed")
wowUnit:assert(addon_obj:to_be_tested("BLAH"),"This should now display (in frame.lua) this text +"..the_returned_variable)
I looked through the code, but wasn't all clear to me :)
http://www.2shared.com/file/stR15Nh-/wowUnit.html
That link contains the following changes:
Core.lua
Readme.md
Hi,
Patches from Issue #3 included.
Cheers,
Alex
The whole package: http://www.2shared.com/file/S1esfOob/wowUnit.html
Hey,
I just wanted to say big thanks for this, it is very valuable for me! :D
Now to business (feature requests):
end,function() end,<time interval say 5 secs>) should suffice.
- More documentation is needed, like how do I do asynch testing on AceEvents?
- A way to repeat the tests X amount of times, so that I can see if something goes broke after running the tests a few time.
Thats all I have for now, I will try to send you some code when I can muster up the spirit to make a mess of other peoples code.
Thanks yet again, and sorry for the lengthy post,
Fulg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.