summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-07-04 18:23:15 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-07-04 18:23:15 +0100
commitd802f4714a68b28a7b48f03d4784ff4d04bf4a78 (patch)
treeab0e10c057b5d943e22464b861f2b93f88bb19da
parent9640f7fbca6e2d8e0e9a2e62260f0ec1eed90483 (diff)
downloadlace-d802f4714a68b28a7b48f03d4784ff4d04bf4a78.tar.bz2
Make luacov optional in the test suite
-rw-r--r--test/test-lace.builtin.lua2
-rw-r--r--test/test-lace.compiler.lua2
-rw-r--r--test/test-lace.engine.lua2
-rw-r--r--test/test-lace.error.lua2
-rw-r--r--test/test-lace.lex.lua2
-rw-r--r--test/test-lace.lua2
6 files changed, 6 insertions, 6 deletions
diff --git a/test/test-lace.builtin.lua b/test/test-lace.builtin.lua
index f6d9bf9..df5ebba 100644
--- a/test/test-lace.builtin.lua
+++ b/test/test-lace.builtin.lua
@@ -9,7 +9,7 @@
-- Step one, start coverage
-local luacov = require 'luacov'
+pcall(require, 'luacov')
local builtin = require 'lace.builtin'
local engine = require 'lace.engine'
diff --git a/test/test-lace.compiler.lua b/test/test-lace.compiler.lua
index acd7e5d..89fde98 100644
--- a/test/test-lace.compiler.lua
+++ b/test/test-lace.compiler.lua
@@ -9,7 +9,7 @@
-- Step one, start coverage
-local luacov = require 'luacov'
+pcall(require, 'luacov')
local compiler = require 'lace.compiler'
local err = require 'lace.error'
diff --git a/test/test-lace.engine.lua b/test/test-lace.engine.lua
index d0a0b6f..7a39904 100644
--- a/test/test-lace.engine.lua
+++ b/test/test-lace.engine.lua
@@ -9,7 +9,7 @@
-- Step one, start coverage
-local luacov = require 'luacov'
+pcall(require, 'luacov')
local lace = require 'lace'
diff --git a/test/test-lace.error.lua b/test/test-lace.error.lua
index e50d0a9..6f7d995 100644
--- a/test/test-lace.error.lua
+++ b/test/test-lace.error.lua
@@ -9,7 +9,7 @@
-- Step one, start coverage
-local luacov = require 'luacov'
+pcall(require, 'luacov')
local error = require 'lace.error'
diff --git a/test/test-lace.lex.lua b/test/test-lace.lex.lua
index 25b2444..d234566 100644
--- a/test/test-lace.lex.lua
+++ b/test/test-lace.lex.lua
@@ -9,7 +9,7 @@
-- Step one, start coverage
-local luacov = require 'luacov'
+pcall(require, 'luacov')
local lex = require 'lace.lex'
diff --git a/test/test-lace.lua b/test/test-lace.lua
index 1a80eca..b54bbab 100644
--- a/test/test-lace.lua
+++ b/test/test-lace.lua
@@ -9,7 +9,7 @@
-- Step one, start coverage
-local luacov = require 'luacov'
+pcall(require, 'luacov')
local lace = require 'lace'
local lex = require 'lace.lex'