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