Skip to content

Commit

Permalink
优化覆盖率输出
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Jun 15, 2013
1 parent a7c3a48 commit 2ba2566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tasks/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ module.exports = function(grunt) {

inject: asset('tasks/lib/bridge.js'),

// Explicit non-file URLs to test.
url: 'http://localhost:8000/test/fet/bin/run.php?case='
});

Expand Down Expand Up @@ -218,7 +217,7 @@ module.exports = function(grunt) {

// Process each filepath in-order.
grunt.util.async.forEachSeries(files, function(module, next) {
var url = options.url + module.replace(/\.js$/i, '');
var url = options.url + module.replace(/\.js$/i, '' );

options.cov && (url += '&cov=true');

Expand Down
4 changes: 2 additions & 2 deletions tasks/smart_cov.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = function( grunt ) {
cliPath = path.resolve('./node_modules/smart-cov/lib/cli.js'),
file = grunt.file;

grunt.registerTask( "smart_cov", function() {
grunt.registerTask( 'smart_cov', function() {
var opts = this.options({
src: '',
dest: ''
Expand All @@ -18,7 +18,7 @@ module.exports = function( grunt ) {
}

grunt.util.spawn({
cmd: "node",
cmd: 'node',
args: [ cliPath, 'instrument', path.resolve(opts.src), '-o', path.resolve(opts.dest) ]
}, function( error, result ) {
if ( error ) {
Expand Down

0 comments on commit 2ba2566

Please sign in to comment.