I just browsed around Jira trying to figure out how I'd add a projet, and it beats me. A link in the Tutorial section would go a long way. *hint, hint* :)
There aren't any Unit Testing frameworks. A Unit Test is just a handy way of saying, "Here's a bunch of tests, if I call function A, it should have result B, if it doesn't, then its broken."
It would be nice to have something a little more structured:
- setup and teardown functions
- per-test reporting of success/failure
- a test harness that lets you flexibly choose which tests you want to run
- runs in game or out of game
- WoW API mimicry for out of game
Probably other stuff too. LUnit and LuaUnit are both written in LUA and so should be pretty easy to port for WoW use. There's also Shake, but I'm less pleased by it's design.
Check to see how Fence or AltClickToAddItem handle clicking items in bags to do stuff.
Thanks, much more straightforward:
function Undercut:ContainerFrameItemButton_OnModifiedClick(button)
...
local bag, id = this:GetParent():GetID(), this:GetID()
local itemLink = GetContainerItemLink(bag, id)
An extremely simple mod that searches for competing items when you alt-click on a bag item while at the aution house. Sets the aution frame level range (+/-3 of item level), category, etc. to match the clicked item and runs the search. If you're like me you've done this manually thousands of time to see how much you can gouge people for on the flying whazzit of the monkey that just dropped. Alt-click is much easier!
0
Wait, I thought that using IRC *was* burning in hell?
Hah, joke! /duck :)
0
0
Is that particular bit of magic a LibStub thing or is it part of the WoW loading code?
0
http://www.wowinterface.com/downloads/info6884-SatrinaBuffFrames2.html
0
Yeah, I saw that. Very nice.
0
0
It would be nice to have something a little more structured:
- setup and teardown functions
- per-test reporting of success/failure
- a test harness that lets you flexibly choose which tests you want to run
- runs in game or out of game
- WoW API mimicry for out of game
Probably other stuff too. LUnit and LuaUnit are both written in LUA and so should be pretty easy to port for WoW use. There's also Shake, but I'm less pleased by it's design.
http://lua-users.org/wiki/UnitTesting
0
Thanks, much more straightforward:
0
0
http://wowace.com/wiki/Undercut
This is the first Ace mod I have published, so brutal feedback is welcomed! :)
Issues:
- Getting clicked item from GameTooltip:GetItem(), which seems clunky. Can anyone suggest a better way?
To Do:
- Console option to control the seach level range, currently hard-wired to +/- 3
- Options for which buttons / modifiers to use
Updates:
- Fixed a bug with missing subcategories
- Borrowed improved method of getting clicked item from Fence