Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
Require luacov before lua-path so that initialization code coverage
is gathered.
  • Loading branch information
mpeterv committed Aug 22, 2015
1 parent 32a8021 commit 1802d3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ 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)") )
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
Expand Down

0 comments on commit 1802d3c

Please sign in to comment.