mirror of https://github.com/koreader/koreader
make coverage target for code coverage for the unit test
so that we can easily find which module needs unit test In order to run 'make coverage' `luacov` need to be installed with 'sudo luarocks install luacov'.pull/956/head
parent
330e5a2789
commit
f1f8d8dc4f
@ -0,0 +1,58 @@
|
||||
--- Global configuration file. Copy, customize and store in your
|
||||
-- project folder as '.luacov' for project specific configuration
|
||||
-- @class module
|
||||
-- @name luacov.defaults
|
||||
return {
|
||||
|
||||
-- default filename to load for config options if not provided
|
||||
-- only has effect in 'luacov.defaults.lua'
|
||||
['configfile'] = '.luacov',
|
||||
|
||||
-- filename to store stats collected
|
||||
['statsfile'] = 'luacov.stats.out',
|
||||
|
||||
-- filename to store report
|
||||
['reportfile'] = 'luacov.report.out',
|
||||
|
||||
-- Run reporter on completion? (won't work for ticks)
|
||||
runreport = true,
|
||||
|
||||
-- Delete stats file after reporting?
|
||||
deletestats = true,
|
||||
|
||||
-- Patterns for files to include when reporting
|
||||
-- all will be included if nothing is listed
|
||||
-- (exclude overrules include, do not include
|
||||
-- the .lua extension)
|
||||
['include'] = {
|
||||
},
|
||||
|
||||
-- Patterns for files to exclude when reporting
|
||||
-- all will be included if nothing is listed
|
||||
-- (exclude overrules include, do not include
|
||||
-- the .lua extension)
|
||||
['exclude'] = {
|
||||
'luacov$',
|
||||
'luacov.reporter$',
|
||||
'luacov.defaults$',
|
||||
'luacov.runner$',
|
||||
'luacov.stats$',
|
||||
'luacov.tick$',
|
||||
'ansicolors$',
|
||||
'copas$',
|
||||
'coxpcall$',
|
||||
'mediator$',
|
||||
'moonscript.*$',
|
||||
'socket$',
|
||||
'busted.*$',
|
||||
'luassert.*$',
|
||||
'pl/.*$',
|
||||
'say.init$',
|
||||
'ffi/.*_h$',
|
||||
'common/.*$',
|
||||
'JSON',
|
||||
'MD5',
|
||||
},
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue