diff options
| -rw-r--r-- | .luacov | 9 | ||||
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | test/core.fnl | 2 |
3 files changed, 10 insertions, 6 deletions
@@ -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"; } @@ -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)) |