From 59b3a69c02c7063bd86506af9bb5888a5ffde0cb Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Wed, 28 Jan 2026 16:13:20 -0600 Subject: [PATCH 1/5] add unit tests via tested Added 'tested' dependency installation and unit test execution step. --- .github/workflows/test-and-coverage.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index 3e25300..524465f 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -34,12 +34,17 @@ jobs: run: | luarocks install lua-cjson luarocks install luacov + luarocks install tested luarocks install luacov-coveralls - name: run toml-test with coverage continue-on-error: true run: | toml-test test -parallel 1 -toml=1.1 -decoder="lua_install/bin/lua -lluacov spec/decoder.lua" -encoder="lua_install/bin/lua -lluacov spec/encoder.lua" + + - name: Run unit tests + run: | + tested -c - name: Report test coverage if: success() From b2ed664ee11a39a61de3afdf59ac5254a6bf569a Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Wed, 28 Jan 2026 16:16:32 -0600 Subject: [PATCH 2/5] Rename date_testing.tl to date_test.tl --- tests/{date_testing.tl => date_test.tl} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename tests/{date_testing.tl => date_test.tl} (99%) diff --git a/tests/date_testing.tl b/tests/date_test.tl similarity index 99% rename from tests/date_testing.tl rename to tests/date_test.tl index f412d2c..e44c367 100644 --- a/tests/date_testing.tl +++ b/tests/date_test.tl @@ -41,4 +41,4 @@ local_date = 1979-05-27]] end) -return tested \ No newline at end of file +return tested From df6649c86946a6b0e170556ea12fbd36925f4a84 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Wed, 28 Jan 2026 16:16:45 -0600 Subject: [PATCH 3/5] Rename max_nesting_depth.tl to max_nesting_depth_test.tl --- tests/{max_nesting_depth.tl => max_nesting_depth_test.tl} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename tests/{max_nesting_depth.tl => max_nesting_depth_test.tl} (99%) diff --git a/tests/max_nesting_depth.tl b/tests/max_nesting_depth_test.tl similarity index 99% rename from tests/max_nesting_depth.tl rename to tests/max_nesting_depth_test.tl index a68db64..e53405a 100644 --- a/tests/max_nesting_depth.tl +++ b/tests/max_nesting_depth_test.tl @@ -51,4 +51,4 @@ tested.test("slightly above max nesting depth", function() tested.assert({given="edge of nesting", should="does not raise an error", expected=true, actual=ok}) end) -return tested \ No newline at end of file +return tested From d047889e3619f5e3c18f3d2a6a8cbef3a2fb3ae9 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Wed, 28 Jan 2026 16:20:57 -0600 Subject: [PATCH 4/5] Disable fail-fast in test workflow --- .github/workflows/test-and-coverage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index 524465f..020af06 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -9,6 +9,7 @@ jobs: test: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: lua: [lua=5.1, lua=5.2, lua=5.3, lua=5.4, lua=5.5, luajit=@v2.0, luajit=@v2.1] steps: From 076df41f74ecc55cd1e7e63adc608c2de943f9a1 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Wed, 28 Jan 2026 16:25:20 -0600 Subject: [PATCH 5/5] Update test matrix to exclude lua=5.5 Removed lua=5.5 from the testing matrix until argparse is updated. --- .github/workflows/test-and-coverage.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index 020af06..c6690fc 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -11,7 +11,8 @@ jobs: strategy: fail-fast: false matrix: - lua: [lua=5.1, lua=5.2, lua=5.3, lua=5.4, lua=5.5, luajit=@v2.0, luajit=@v2.1] + # TODO: re-add lua=5.5 once argparse has been updated + lua: [lua=5.1, lua=5.2, lua=5.3, lua=5.4, luajit=@v2.0, luajit=@v2.1] steps: # Checks-out the repository under $GITHUB_WORKSPACE. - uses: actions/checkout@v6