Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

report.js 792B

123456789101112131415161718192021222324252627282930
  1. 'use strict'
  2. const NYC = require('../../index.js')
  3. const { cliWrapper, suppressEPIPE, setupOptions } = require('./helpers.js')
  4. exports.command = 'report'
  5. exports.describe = 'run coverage report for .nyc_output'
  6. exports.builder = function (yargs) {
  7. yargs
  8. .demandCommand(0, 0)
  9. .example('$0 report --reporter=lcov', 'output an HTML lcov report to ./coverage')
  10. setupOptions(yargs, 'report')
  11. }
  12. exports.handler = cliWrapper(async argv => {
  13. process.env.NYC_CWD = process.cwd()
  14. var nyc = new NYC(argv)
  15. await nyc.report().catch(suppressEPIPE)
  16. if (argv.checkCoverage) {
  17. await nyc.checkCoverage({
  18. lines: argv.lines,
  19. functions: argv.functions,
  20. branches: argv.branches,
  21. statements: argv.statements
  22. }, argv['per-file']).catch(suppressEPIPE)
  23. }
  24. })