Skip to content

Commit 49eb8d2

Browse files
committed
Configured busted to run luacov. Configured luacov to report on src/'
1 parent e293b2b commit 49eb8d2

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.busted

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
return {
2+
default = {
3+
coverage = true
4+
}
5+
}

.luacov

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
--- Global configuration file. Copy, customize and store in your
2+
-- project folder as '.luacov' for project specific configuration
3+
-- @class module
4+
-- @name luacov.defaults
5+
6+
return {
7+
-- default filename to load for config options if not provided
8+
-- only has effect in 'luacov.defaults.lua'
9+
['configfile'] = '.luacov',
10+
11+
-- filename to store stats collected
12+
['statsfile'] = 'luacov.stats.out',
13+
14+
-- filename to store report
15+
['reportfile'] = 'luacov.report.out',
16+
17+
-- Run reporter on completion? (won't work for ticks)
18+
runreport = true,
19+
20+
-- Delete stats file after reporting?
21+
deletestats = true,
22+
23+
-- Patterns for files to include when reporting
24+
-- all will be included if nothing is listed
25+
-- (exclude overrules include, do not include
26+
-- the .lua extension)
27+
['include'] = {
28+
'src'
29+
},
30+
31+
-- Patterns for files to exclude when reporting
32+
-- all will be included if nothing is listed
33+
-- (exclude overrules include, do not include
34+
-- the .lua extension)
35+
['exclude'] = {
36+
},
37+
}

0 commit comments

Comments
 (0)