lib/render.js
function(){
		var color = munit.color.get[ munit.failed > 0 ? 'red' : 'green' ],
			callback = render.callback;

		// Can only complete a finished munit state
		// (dont pass startFunc, we want _complete as part of the trace here)
		render.requireState( munit.RENDER_STATE_FINISHED );
		render.state = munit.RENDER_STATE_COMPLETE;

		// Print out final results
		munit.log([
			"\n",
			color( "Tests Passed: " + munit.passed ),
			color( "Tests Failed: " + munit.failed ),
			color( "Tests Skipped: " + munit.skipped ),
			color( "Time: " + munit._relativeTime( munit.end - munit.start ) ),
			"\n"
		].join( "\n" ));

		// Only exit if there is an error (callback will be triggered there)
		if ( munit.failed > 0 ) {
			munit.exit( 1, "Test failed with " + munit.failed + " errors" );
		}
		// Trigger callback if provided
		else if ( callback ) {
			render.callback = undefined;
			callback( null, munit );
		}
	}
function(){
		var color = munit.color.get[ munit.failed > 0 ? 'red' : 'green' ],
			callback = render.callback;

		// Can only complete a finished munit state
		// (dont pass startFunc, we want _complete as part of the trace here)
		render.requireState( munit.RENDER_STATE_FINISHED );
		render.state = munit.RENDER_STATE_COMPLETE;

		// Print out final results
		munit.log([
			"\n",
			color( "Tests Passed: " + munit.passed ),
			color( "Tests Failed: " + munit.failed ),
			color( "Tests Skipped: " + munit.skipped ),
			color( "Time: " + munit._relativeTime( munit.end - munit.start ) ),
			"\n"
		].join( "\n" ));

		// Only exit if there is an error (callback will be triggered there)
		if ( munit.failed > 0 ) {
			munit.exit( 1, "Test failed with " + munit.failed + " errors" );
		}
		// Trigger callback if provided
		else if ( callback ) {
			render.callback = undefined;
			callback( null, munit );
		}
	}
function ( ) { var color = munit . color . get [ munit . failed > 0 ? 'red' : 'green' ] , callback = render . callback ; // Can only complete a finished munit state // (dont pass startFunc, we want _complete as part of the trace here) render . requireState ( munit . RENDER_STATE_FINISHED ) ; render . state = munit . RENDER_STATE_COMPLETE ; // Print out final results munit . log ( [ "\n" , color ( "Tests Passed: " + munit . passed ) , color ( "Tests Failed: " + munit . failed ) , color ( "Tests Skipped: " + munit . skipped ) , color ( "Time: " + munit . _relativeTime ( munit . end - munit . start ) ) , "\n" ] . join ( "\n" ) ) ; // Only exit if there is an error (callback will be triggered there) if ( munit . failed > 0 ) { munit . exit ( 1 , "Test failed with " + munit . failed + " errors" ) ; } // Trigger callback if provided else if ( callback ) { render . callback = undefined ; callback ( null , munit ) ; } }
Finished off test result writing, print out suite results
Finished off test result writing print out suite results