mirror of
https://github.com/Insality/druid
synced 2025-06-27 02:17:52 +02:00
Add test collection
This commit is contained in:
parent
281d42682e
commit
b5e5d0fed0
@ -11,6 +11,7 @@ height = 900
|
||||
[project]
|
||||
title = druid
|
||||
version = 0.5.0
|
||||
dependencies = https://github.com/insalitygames/deftest/archive/master.zip
|
||||
|
||||
[library]
|
||||
include_dirs = druid
|
||||
|
37
test/test.collection
Normal file
37
test/test.collection
Normal file
@ -0,0 +1,37 @@
|
||||
name: "default"
|
||||
scale_along_z: 0
|
||||
embedded_instances {
|
||||
id: "test"
|
||||
data: "components {\n"
|
||||
" id: \"test\"\n"
|
||||
" component: \"/test/test.script\"\n"
|
||||
" position {\n"
|
||||
" x: 0.0\n"
|
||||
" y: 0.0\n"
|
||||
" z: 0.0\n"
|
||||
" }\n"
|
||||
" rotation {\n"
|
||||
" x: 0.0\n"
|
||||
" y: 0.0\n"
|
||||
" z: 0.0\n"
|
||||
" w: 1.0\n"
|
||||
" }\n"
|
||||
"}\n"
|
||||
""
|
||||
position {
|
||||
x: 0.0
|
||||
y: 0.0
|
||||
z: 0.0
|
||||
}
|
||||
rotation {
|
||||
x: 0.0
|
||||
y: 0.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
}
|
||||
scale3 {
|
||||
x: 1.0
|
||||
y: 1.0
|
||||
z: 1.0
|
||||
}
|
||||
}
|
16
test/test.script
Normal file
16
test/test.script
Normal file
@ -0,0 +1,16 @@
|
||||
local deftest = require "deftest.deftest"
|
||||
|
||||
local tests = {
|
||||
-- Test list
|
||||
}
|
||||
|
||||
|
||||
function init(self)
|
||||
print('[DefTest]: Init of DefTest')
|
||||
for i = 1, #tests do
|
||||
deftest.add(tests[i])
|
||||
end
|
||||
|
||||
local is_report = (sys.get_config("test.report") == "1")
|
||||
deftest.run({ coverage = { enabled = is_report } })
|
||||
end
|
@ -1,5 +1,5 @@
|
||||
[bootstrap]
|
||||
main_collection = /example/kenney.collectionc
|
||||
main_collection = /test/test.collectionc
|
||||
|
||||
[display]
|
||||
height = 256
|
||||
|
Loading…
x
Reference in New Issue
Block a user