From 2839566c7f83747bb8e2f28ae47699bd27f0ada7 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Sat, 7 Nov 2020 13:04:23 +0300 Subject: fix(CI): update luacov pipeline --- .luacov | 9 ++++++--- Makefile | 5 +++-- test/core.fnl | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.luacov b/.luacov index 8759d73..1e6023e 100644 --- a/.luacov +++ b/.luacov @@ -3,7 +3,10 @@ -- see https://keplerproject.github.io/luacov/doc/modules/luacov.defaults.html return { - runreport = true, - statsfile = "luacov.stats.out"; - reportfile = "luacov.report.out"; + ["exclude"] = { + "src/fennel/macros.fnl" + }, + runreport = true, + statsfile = "luacov.stats.out"; + reportfile = "luacov.report.out"; } diff --git a/Makefile b/Makefile index 4f6d1c5..5188226 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ LUA ?= lua -FNLSOURCES = core.fnl test/core.fnl test/macros.fnl +FNLSOURCES = core.fnl test/core.fnl test/macros.fnl test/fn.fnl LUASOURCES = $(FNLSOURCES:.fnl=.lua) all: $(LUASOURCES) @@ -37,7 +37,8 @@ luacov-console: | luacov @mv test/fn.lua.tmp test/fn.lua luacov-stats: test/core.lua test/macros.lua test/fn.lua - @$(LUA) -lluarocks.loader -lluacov $< + @$(foreach test, $?, $(LUA) -lluarocks.loader -lluacov $(test);) + help: @echo "make -- run tests and create lua library" >&2 diff --git a/test/core.fnl b/test/core.fnl index ed34e02..c05f2ec 100644 --- a/test/core.fnl +++ b/test/core.fnl @@ -579,7 +579,7 @@ (assert* (not (ge 1 2 4 4)))) (testing gt - (assert* (not (pcall ge))) + (assert* (not (pcall gt))) (assert* (gt 2)) (assert* (gt 2 1)) (assert* (gt 3 2 1)) -- cgit v1.2.3