Check Your Lua simplifies testing and refining your Lua code. Run scripts quickly and see results to improve your skills with test-driven development!
App Version 0.0.1: Initial framework release.
Check Your Lua is a minimal testing framework designed to help developers easily test and refine their Lua code. This app supports quick script execution, making it ideal for developers at any level.
This app is built with Lua and utilizes various modern technologies for a seamless user experience, ensuring easy integration and quick access to testing functionalities.
Follow these steps to set up your environment and run your first test:
To install Check Your Lua:
git clone https://github.com/Sieep-Coding/Check-Your-Lua.git
cd Check-Your-Lua
lua setup.lua
To open Check Your Lua:
cd Check-Your-Lua
lua main.lua
Check Your Lua offers several features:
Quickly run Lua scripts and view the output in the console:
lua main.lua my_script.lua
Test results are displayed with colors for easy identification:
Runs natively with Lua without requiring additional libraries.
Clear instructions guide you through setting up and running tests.
Write and run tests for your Lua code with the following structure:
-- my_test.lua
local function add(a, b)
return a + b
end
assert(add(1, 2) == 3, "Test failed: 1 + 2 should be 3")
print("All tests passed!")
Run this test:
lua main.lua my_test.lua
-- test_addition.lua
local function add(a, b)
return a + b
end
assert(add(5, 7) == 12, "Test failed: 5 + 7 should be 12")
print("Test passed!")
Run the test:
lua main.lua test_addition.lua
-- test_strings.lua
local function concat(a, b)
return a .. b
end
assert(concat("Hello", " World") == "Hello World", "Test failed: Strings not concatenated correctly")
print("Test passed!")
Run the test:
lua main.lua test_strings.lua
For further details, refer to the official GitHub repository.