use master testacular only if --cov
This commit is contained in:
parent
2da36a2851
commit
071bb587b8
@ -156,7 +156,7 @@ exports.build = function (compsBase32, buildName) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.test = function() {
|
exports.test = function() {
|
||||||
var testacular = require('../node_modules/testacular/lib/index.js'),
|
var testacular = require('testacular'),
|
||||||
testConfig = {configFile : __dirname + '/../spec/testacular.conf.js'};
|
testConfig = {configFile : __dirname + '/../spec/testacular.conf.js'};
|
||||||
|
|
||||||
testConfig.browsers = ['PhantomJS'];
|
testConfig.browsers = ['PhantomJS'];
|
||||||
@ -165,7 +165,8 @@ exports.test = function() {
|
|||||||
|
|
||||||
//will work only with new testacular that supports codecoverage
|
//will work only with new testacular that supports codecoverage
|
||||||
//today its in master
|
//today its in master
|
||||||
if(isArgv('--cov')){
|
if(isArgv('--cov')){ // temporary hack untill testacular with coverage become stable
|
||||||
|
testacular = require('../node_modules/testacular/lib/index.js'); //use local testacular
|
||||||
testConfig.preprocessors = {
|
testConfig.preprocessors = {
|
||||||
'**/src/**/*.js': 'coverage',
|
'**/src/**/*.js': 'coverage',
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user