npm i gemini-coverage
gemini-coverage <path_to_bem_library> # (стандартный, консольный отчет)
gemini-coverage <path_to_bem_library> -r html # (отчет в виде html)
gemini-coverage <path_to_bem_library> -r number # (отчет в виде чисел - 3/5)
var geminiCoverage = require('gemini-coverage');
...
return geminiCoverage.mkReport(path_to_bem_library, reporter)
.then(function(coverage) {
console.log(geminiCoverage.summarizeCoverage(coverage));
});