Integrate istanbul for test coverage
This commit is contained in:
committed by
Marc Jansen
parent
6d55e4aa99
commit
7c9795ba35
@@ -60,6 +60,11 @@ serve.createServer(function(err, server) {
|
||||
url + '/test/index.html'
|
||||
];
|
||||
|
||||
if (process.argv.length > 2 && process.argv[2] === 'istanbul') {
|
||||
args.push('spec', '{"hooks": "' +
|
||||
path.join(__dirname, '../test/phantom_hooks.js') + '"}');
|
||||
}
|
||||
|
||||
var child = spawn(phantomjs.path, args, {stdio: 'inherit'});
|
||||
child.on('exit', function(code) {
|
||||
process.exit(code);
|
||||
|
||||
Reference in New Issue
Block a user