Removed WoWUnit from pkgmeta, because it should be installed as its own addon instead of embedded.
pschifferer [03-15-09 - 15:05]
Removed WoWUnit from pkgmeta, because it should be installed as its own addon instead of embedded.
Added a check to the unit test file to make sure WoWUnit is available before registering a test suite.
diff --git a/.pkgmeta b/.pkgmeta
index 74ce385..6b702e5 100644
--- a/.pkgmeta
+++ b/.pkgmeta
@@ -39,6 +39,3 @@ externals:
Libs/LibLogger-1.0:
url: svn://svn.wowace.com/wow/liblogger-1-0/mainline/trunk/LibLogger-1.0
tag: latest
- Libs/WoWUnit-1.0.9:
- url: svn://svn.wowace.com/wow/wowunit/mainline/trunk
- tag: latest
diff --git a/CauldronUnitTests.lua b/CauldronUnitTests.lua
index fc4f8c4..c38a36d 100644
--- a/CauldronUnitTests.lua
+++ b/CauldronUnitTests.lua
@@ -1,6 +1,7 @@
-- unit tests
-- $Revision$
+--@alpha@
local CauldronTestSuite = {
mocks = {
GetItemCount = function(arg)
@@ -28,5 +29,8 @@ local CauldronTestSuite = {
end;
};
-WoWUnit:AddTestSuite("CauldronTestSuite", CauldronTestSuite);
+if WoWUnit then
+ WoWUnit:AddTestSuite("CauldronTestSuite", CauldronTestSuite);
+end
+--@end-alpha@