From 1802d3c5411131effd8ec6b0a75415a9a9c41e29 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Sat, 22 Aug 2015 18:22:37 +0300 Subject: [PATCH] Fix coverage Require luacov before lua-path so that initialization code coverage is gathered. --- test/run.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run.lua b/test/run.lua index 6c75ab1..24f742e 100644 --- a/test/run.lua +++ b/test/run.lua @@ -7,6 +7,8 @@ end local lfs = prequire "lfs" +prequire"luacov" + print("------------------------------------") print("Lua version: " .. (_G.jit and _G.jit.version or _G._VERSION)) print("LFS version: " .. (lfs and (lfs._VERSION or "(unknown)") or "(not found)") ) @@ -14,8 +16,6 @@ print("Is Windows: " .. tostring(not not require"path".IS_WINDOWS)) print("------------------------------------") print("") -prequire"luacov" - local HAS_RUNNER = not not lunit local lunit = require "lunit" LUNIT_RUN = true