Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix truncation errors #44

Merged
merged 2 commits into from
Apr 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/fuzzy-tester
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var analyze_results = require( '../lib/analyze_results' );
// display results using the correct output generator
var return_code = config.outputGenerator(evaled_results, config, testSuites);

process.exit(return_code);
process.exitCode = return_code;
};

// find all test suites and test cases that will be run
Expand Down
12 changes: 6 additions & 6 deletions output_generators/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ function prettyPrintResult( result ){

case 'fail':
var color = (result.progress === 'regression') ? 'red' : 'yellow';
console.error(
console.log(
util.format( ' ✘ %s[%s] "%s": %s', status, id, testDescription, result.msg )[ color ]
);
break;

case 'placeholder':
console.error( util.format( ' ! [%s] "%s": %s', id, testDescription, result.msg ).cyan );
console.log( util.format( ' ! [%s] "%s": %s', id, testDescription, result.msg ).cyan );
break;

default:
console.error( util.format( 'Result type `%s` not recognized.', result.result ) );
console.log( util.format( 'Result type `%s` not recognized.', result.result ) );
process.exit( 1 );
break;
}
Expand All @@ -67,8 +67,8 @@ function prettyPrintSuiteResults( suiteResults, config, testSuites ){

console.log( '\nAggregate test results'.blue );
console.log( 'Pass: ' + suiteResults.stats.pass.toString().green );
console.error( 'Fail: ' + suiteResults.stats.fail.toString().yellow );
console.error( 'Placeholders: ' + suiteResults.stats.placeholder.toString().cyan );
console.log( 'Fail: ' + suiteResults.stats.fail.toString().yellow );
console.log( 'Placeholders: ' + suiteResults.stats.placeholder.toString().cyan );

var numRegressions = suiteResults.stats.regression;
var regressionsColor = ( numRegressions > 0 ) ? 'red' : 'yellow';
Expand All @@ -81,7 +81,7 @@ function prettyPrintSuiteResults( suiteResults, config, testSuites ){

console.log( '' );
if( numRegressions > 0 ){
console.error( 'FATAL ERROR: %s regression(s) detected.'.red.inverse, numRegressions );
console.log( 'FATAL ERROR: %s regression(s) detected.'.red.inverse, numRegressions );
return 1;
}
else {
Expand Down