remove testacular master hack (as 0.6 is now stable)
This commit is contained in:
parent
b51239a4b4
commit
c0d01ceffe
@ -160,12 +160,15 @@ exports.test = function() {
|
||||
testConfig = {configFile : __dirname + '/../spec/testacular.conf.js'};
|
||||
|
||||
testConfig.browsers = ['PhantomJS'];
|
||||
isArgv('--chrome') && testConfig.browsers.push('Chrome');
|
||||
isArgv('--ff') && testConfig.browsers.push('Firefox');
|
||||
|
||||
// will work only with new testacular that supports code coverage (today it's in master)
|
||||
if (isArgv('--cov')) { // temporary hack until testacular with coverage becomes stable
|
||||
testacular = require('../node_modules/testacular/lib/index.js'); // use local testacular
|
||||
if (isArgv('--chrome')) {
|
||||
testConfig.browsers.push('Chrome');
|
||||
}
|
||||
if (isArgv('--ff')) {
|
||||
testConfig.browsers.push('Firefox');
|
||||
}
|
||||
|
||||
if (isArgv('--cov')) {
|
||||
testConfig.preprocessors = {
|
||||
'**/src/**/*.js': 'coverage',
|
||||
};
|
||||
@ -178,7 +181,7 @@ exports.test = function() {
|
||||
|
||||
testacular.server.start(testConfig);
|
||||
|
||||
function isArgv(optName){
|
||||
function isArgv(optName) {
|
||||
return process.argv.indexOf(optName) !== -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user