UNPKG

331 BJavaScriptView Raw
1#!/usr/bin/env node
2
3/**
4 * Measure test coverage.
5 */
6
7'use strict'
8
9process.chdir(`${__dirname}/..`)
10
11const { runTasks } = require('ape-tasking')
12const { measureCoverage } = require('ape-covering')
13
14runTasks('cover', [
15 () => measureCoverage('_mocha', [
16 '-t', 4000, 'test/*_test.js'
17 ], {
18 dir: 'coverage'
19 })
20], true)