code: function( dir ) {
  		// Make the root results directory first
  		render._mkdir( dir, function( e ) {
  			if ( e ) {
  				return munit.exit( 1, e, "Failed to make root results directory" );
  			}
  
  			// Make a working directory for each format
  			async.each( render._formats,
  				function( format, callback ) {
  					var path = dir + format.name + '/';
  
  					render._mkdir( path, function( e ) {
  						if ( e ) {
  							callback( e );
  						}
  						else {
  							format.callback( path, callback );
  						}
  					});
  				},
  				function( e ) {
  					if ( e ) {
  						munit.exit( 1, e );
  					}
  					else {
  						render._complete();
  					}
  				}
  			);
  		});
  	}
docs: Generates result directories