Files
metabuilder/packages/lua_test/seed/scripts/init.lua
JohnDoe6345789 aa01e42ae8 feat(lua_test): add unit testing framework with BDD-style organization
- Implemented core testing functionalities including describe/it blocks, before/after hooks, and assertion methods.
- Added support for mocks and spies to facilitate testing of functions and methods.
- Introduced helper utilities for generating test data, parameterized tests, and snapshot testing.
- Developed a test runner that executes suites and generates detailed reports in both text and JSON formats.
- Created a manifest for the lua_test package to define scripts and their purposes.

feat(screenshot_analyzer): introduce screenshot analysis package

- Added metadata for the screenshot_analyzer package, detailing its components and scripts.
- Defined dependencies and bindings for browser interactions.
2025-12-30 01:15:59 +00:00

35 lines
646 B
Lua

-- lua_test package initialization
-- Unit testing framework for MetaBuilder Lua scripts
local M = {}
M.version = "1.0.0"
M.name = "lua_test"
function M.init()
return {
success = true,
message = "Lua Test Framework initialized",
version = M.version
}
end
function M.info()
return {
name = M.name,
version = M.version,
description = "Unit testing framework for Lua scripts",
features = {
"describe/it blocks",
"assertions (expect)",
"beforeEach/afterEach hooks",
"mocks and spies",
"async test support",
"test filtering",
"detailed reporting"
}
}
end
return M