summaryrefslogtreecommitdiff
path: root/honey/ecs.test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'honey/ecs.test.lua')
-rw-r--r--honey/ecs.test.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/honey/ecs.test.lua b/honey/ecs.test.lua
index fbdba30..0577dcd 100644
--- a/honey/ecs.test.lua
+++ b/honey/ecs.test.lua
@@ -1,8 +1,13 @@
+local testCount = 0
+local failCount = 0
+
local function test(msg, f)
+ testCount = testCount + 1
local success, error = xpcall(f, debug.traceback)
if success then
print(msg .. "\t\t[OK]")
else
+ failCount = failCount + 1
print(msg .. "\t\t[FAIL]")
print(error)
end
@@ -222,3 +227,6 @@ test("EntityDb.deleteEntity() correctly removes an entity", function()
local query = db:queryEntity(id1)
end))
end)
+
+
+print(string.format("ran %d tests, %d failed", testCount, failCount))