You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
jscoverage will ignore files while list in .covignore file
jscoverage will output a report in html format
jscoverage will inject a group of function to your module.exports (_get, _set, _reset, _replace);
jscoverage will switch the colorful output: 90%+ is greate, 85%+ is ok, lower then 75% coverage is terrible
jscoverage can recognise all options below:
--covignore [filepath] # like gitignore, tell jscoverage to ignore these files --overrideIgnore [boolean] # set if override the build-in ignore rules --covout [output report] # can be: spec, list, tap, detail, html --coverage [high,middle,low] # coverage level, default is: 90,70,30 , means 90% is high, 30% is low --covinject [boolean] # switch if inject code for easytest(exports._get, exports._replace, exports._reset)
default jscoverage will search .covignore in the project root
using jscoverage as cli command
jscoverage# print help infojscoverage source.js# convert source.js to source-cov.jsjscoverage source.js dest.js# convert source.js to dest.jsjscoverage sourcedir destdir --exclude a.js,b.js,c.js,*.min.js# convert all files in sourcedir to destdir, exclude list will be ignored
jscoverage will copy exclude file from source dir to dest dir