Commit a7593a8a authored by Caleb Weeks's avatar Caleb Weeks
Browse files

in progress

parent a19ae540
......@@ -166,9 +166,18 @@ module.exports=function(args){
_.each(modulesToTest, function(module, moduleId){
console.log(c.green('\n\nTesting: ' + moduleId + ' @ ' + module.modulePath));
//set the correct path to the static files
processesManager.startSling(module.testsPaths.slingResponses);
if(runUnitTests){
if(fs.existsSync(module.testsPaths.unit)){
console.log(c.green('Executing Unit Tests'));
var componentsPath = _path.resolve(module.testsPaths.unit, 'components');
if(fs.existsSync(componentsPath)){
//find all the JS and JSON files
}
}else{
console.log(c.yellow('No unit tests found.'));
}
......@@ -190,9 +199,6 @@ module.exports=function(args){
}
});
//set the correct path to the static files
processesManager.startSling(module.testsPaths.slingResponses);
_.each(testsToExecute, function(tests, key){
if(tests.length){
console.log(c.green('Tests for: ' + key));
......@@ -211,15 +217,13 @@ module.exports=function(args){
}
});
//kill the sling instance
processesManager.killSling();
}else{
console.log(c.yellow('No browser tests found.'));
}
}
//kill the sling instance
processesManager.killSling();
});
callback();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment