mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Coverage report task fix for Windoze
This commit is contained in:
parent
61d693cac9
commit
2e64fcc5d2
2 changed files with 9 additions and 2 deletions
|
@ -260,7 +260,14 @@ var path = require('path'),
|
||||||
command: 'bourbon install --path <%= paths.adminAssets %>/sass/modules/'
|
command: 'bourbon install --path <%= paths.adminAssets %>/sass/modules/'
|
||||||
},
|
},
|
||||||
coverage: {
|
coverage: {
|
||||||
command: './node_modules/mocha/bin/mocha --timeout 15000 --reporter html-cov > coverage.html ./core/test/blanket_coverage.js'
|
command: function () {
|
||||||
|
// will work on windows only if mocha is globally installed
|
||||||
|
var cmd = !!process.platform.match(/^win/) ? 'mocha' : './node_modules/mocha/bin/mocha';
|
||||||
|
return cmd + ' --timeout 15000 --reporter html-cov > coverage.html ./core/test/blanket_coverage.js';
|
||||||
|
},
|
||||||
|
execOptions: {
|
||||||
|
env: 'NODE_ENV=' + process.env.NODE_ENV
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
var blanket = require("blanket")({
|
var blanket = require("blanket")({
|
||||||
"pattern": ["/core/server/", "/core/client/", "/core/shared/"],
|
"pattern": ["/core/server/", "/core/client/", "/core/shared/"],
|
||||||
"data-cover-only": ["/core/server/", "/core/client/", "/core/shared/"]
|
"data-cover-only": ["/core/server/", "/core/client/", "/core/shared/"]
|
||||||
}),
|
}),
|
||||||
requireDir = require("require-dir");
|
requireDir = require("require-dir");
|
||||||
|
|
||||||
requireDir("./unit");
|
requireDir("./unit");
|
||||||
|
|
Loading…
Add table
Reference in a new issue