mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
- 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.
35 lines
646 B
Lua
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
|