Skip to content

Commit

Permalink
CI integration with travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Diullei committed Feb 23, 2013
1 parent a2fb51b commit f916e31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions _tests/testRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ function runTests(testFiles) {
} else {
total_failure++;
}
console.log(' [\033[35m' + lib + '\033[0m] ' + testFiles[testIndex].substr(cfg.root.length) + ' - ' + (testFile.errors.length == 0 ? '\033[32msuccess\033[0m' : '\033[31mfailure\033[0m'));
console.log(' [\033[36m' + lib + '\033[0m] ' + testFiles[testIndex].substr(cfg.root.length) + ' - ' + (testFile.errors.length == 0 ? '\033[32msuccess\033[0m' : '\033[31mfailure\033[0m'));
var test = new Test(lib);
test.files.push(testFile);
tests.tests.push(test);
Expand All @@ -585,12 +585,12 @@ function runTests(testFiles) {
for(var attr in withoutTests) {
var test = new Test(attr);
tests.tests.push(test);
console.log(' [\033[35m' + attr + '\033[0m] without tests');
console.log(' [\033[36m' + attr + '\033[0m] without tests');
withoutTestsCount++;
}
console.log('\n> ' + (total_failure + total_success + withoutTestsCount) + ' tests. ' + '\033[32m' + total_success + ' tests success\033[0m, ' + '\033[31m' + total_failure + ' tests failed\033[0m and ' + '\033[35m' + withoutTestsCount + ' definitions without tests\033[0m.\n');
console.log('\n> ' + (total_failure + total_success + withoutTestsCount) + ' tests. ' + '\033[32m' + total_success + ' tests success\033[0m, ' + '\033[31m' + total_failure + ' tests failed\033[0m and ' + withoutTestsCount + ' definitions without tests.\n');
if(total_failure > 0) {
process.exit(0);
process.exit(1);
}
}
});
Expand Down
10 changes: 6 additions & 4 deletions _tests/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function runTests(testFiles) {
total_failure++;
}

console.log(' [\033[35m' + lib + '\033[0m] ' + testFiles[testIndex].substr(cfg.root.length)
console.log(' [\033[36m' + lib + '\033[0m] ' + testFiles[testIndex].substr(cfg.root.length)
+ ' - ' + (testFile.errors.length == 0 ? '\033[32msuccess\033[0m' : '\033[31mfailure\033[0m'));

var test = new Test(lib);
Expand Down Expand Up @@ -119,17 +119,19 @@ function runTests(testFiles) {
var test = new Test(attr);
tests.tests.push(test);

console.log(' [\033[35m' + attr + '\033[0m] without tests');
console.log(' [\033[36m' + attr + '\033[0m] without tests');
withoutTestsCount++;
}

console.log('\n> ' + (total_failure + total_success + withoutTestsCount)
+ ' tests. '
+ '\033[32m' + total_success + ' tests success\033[0m, '
+ '\033[31m' + total_failure + ' tests failed\033[0m and '
+ '\033[35m' + withoutTestsCount + ' definitions without tests\033[0m.\n');
+ withoutTestsCount + ' definitions without tests.\n');

if (total_failure > 0) process.exit(0);
if (total_failure > 0) {
process.exit(1);
}
}
});
}
Expand Down

0 comments on commit f916e31

Please sign in to comment.