z_mirror/flib
git clone https://git.raiguard.me/z_mirror/flib
8ad0fdc
trunk
To run tests with vscode test explorer or lua.
Adds package.searcher for __modname__ requires.
Adds some package.path(s) because path explosion will make it find the correct file.
This framework sets up the following.
Adds generic versions of global factorio functions (defines, log, table_size).
Test Explorer extension, search for tests, run tests (optionally debug tests)
Code Runner (.run) extension, just run the file
Sumneko vscode: run/debug should work.
Lua: From the mod root run lua tests/test_name.lua
1To run tests with vscode test explorer or lua. 2 3Adds package.searcher for `__modname__` requires. 4Adds some package.path(s) because path explosion will make it find the correct file. 5This framework sets up the following. 6Adds generic versions of global factorio functions (defines, log, table_size). 7 8Test Explorer extension, search for tests, run tests (optionally debug tests) 9Code Runner (.run) extension, just run the file 10Sumneko vscode: run/debug should work. 11Lua: From the mod root run `lua tests/test_name.lua`