UNPKG

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