-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
This should allow retrieving local variables and functions for validation and unit tests.
For example could be mineunit:get_local("init.lua", "secretdata")
to get local secretdata = "internal stuff"
defined in mod init.lua
.
Internal functions could be tested with
it("returns Hello World", function()
local fn = mineunit:get_local("init.lua", "hello")
assert.is_function(fn)
assert.equals("Hello World", fn("World"))
end)
When mod init.lua
contains
local function hello(msg)
return "Hello " .. msg
end
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Projects
Status
In review