跳到主要内容

测试与工具链

常用测试框架与工具、格式/静态检查等。

  • 测试:bustedluassert
  • 代码规范/格式化:luacheckstylua
  • 打包:luarocks;调试:mobdebug

busted 示例

describe('math', function()
it('adds', function()
assert.is_true(1 + 2 == 3)
end)
end)