forked from amachang/facebook-node-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoverage.js
More file actions
26 lines (25 loc) · 765 Bytes
/
coverage.js
File metadata and controls
26 lines (25 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var spawn = require('child_process').spawn;
var rm = spawn('rm', ['-rf', 'lib-cov']);
rm.on('exit', function(code) {
if (code !== 0) {
console.error('Failure: rm -rf lib-cov');
return;
}
var jscov = spawn('./node_modules/.bin/node-jscoverage', ['lib', 'lib-cov']);
jscov.on('exit', function(code) {
if (code !== 0) {
console.error('Failure: jscoverage');
return;
}
var expresso = spawn('./node_modules/.bin/expresso');
expresso.stdout.pipe(process.stdout);
expresso.stderr.pipe(process.stderr);
expresso.on('exit', function(code) {
var rm = spawn('rm', ['-rf', 'lib-cov']).on('exit', function() {
if (code !== 0) {
consnole.log('Failure: expresso');
}
});
});
});
});