2 Copyright (c) 2012, Yahoo! Inc. All rights reserved.
3 Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
6 var runWithCover = require('./common/run-with-cover'),
7 util = require('util'),
8 Command = require('./index');
10 function CoverCommand() {
14 CoverCommand.TYPE = 'cover';
15 util.inherits(CoverCommand, Command);
17 Command.mix(CoverCommand, {
18 synopsis: function () {
19 return "transparently adds coverage information to a node command. Saves coverage.json and reports at the end of execution";
23 runWithCover.usage(this.toolName(), this.type());
26 run: function (args, callback) {
27 runWithCover.run(args, this.type(), true, callback);
32 module.exports = CoverCommand;