【文件属性】:
文件名称:lovetest:由Lunatest支持的LOVE单元测试
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-09 12:01:20
lua deprecated love2d Lua
爱情测试
由Lunatest支持的LOVE游戏的单元测试。
特征
零依赖的简单设置
通过命令行运行测试
快速创建测试
用法
下载并将其解压缩到与main.lua文件相同的文件夹中。
在main.lua , main.lua添加到您的love.load函数中。 如果您还没有该功能,请添加它。
local lovetest = require " test/lovetest "
function love.load ( arg )
-- Check for the testing command line flags
if lovetest. detect (arg) then
-- Run the tests
lovetest. run ()
end
end
使用命令行,您现在可以运行单元测试
love path/to/game --test
写作测试
测试
【文件预览】:
lovetest-master
----LICENSE(1KB)
----README.md(1KB)
----test()
--------lovetest.lua(1KB)
--------lunatest.lua(32KB)