lib/render.js
function( path, callback ) {
		var match = munit.isRegExp( render.options.file_match ) ? render.options.file_match : rtestfile;

		path += '/';
		fs.readdir( path, function( e, files ) {
			if ( e ) {
				return callback( e );
			}

			async.each( files || [],
				function( file, callback ) {
					var fullpath = path + file;

					fs.stat( fullpath, function( e, stat ) {
						if ( e ) {
							callback( e );
						}
						else if ( stat.isDirectory() ) {
							render._renderPath( fullpath, callback );
						}
						else {
							if ( stat.isFile() && match.exec( file ) ) {
								munit.require( fullpath );
							}

							callback();
						}
					});
				},
				callback
			);
		});
	}
function( path, callback ) {
		var match = munit.isRegExp( render.options.file_match ) ? render.options.file_match : rtestfile;

		path += '/';
		fs.readdir( path, function( e, files ) {
			if ( e ) {
				return callback( e );
			}

			async.each( files || [],
				function( file, callback ) {
					var fullpath = path + file;

					fs.stat( fullpath, function( e, stat ) {
						if ( e ) {
							callback( e );
						}
						else if ( stat.isDirectory() ) {
							render._renderPath( fullpath, callback );
						}
						else {
							if ( stat.isFile() && match.exec( file ) ) {
								munit.require( fullpath );
							}

							callback();
						}
					});
				},
				callback
			);
		});
	}
function ( path , callback ) { var match = munit . isRegExp ( render . options . file_match ) ? render . options . file_match : rtestfile ; path += '/' ; fs . readdir ( path , function ( e , files ) { if ( e ) { return callback ( e ) ; } async . each ( files || [ ] , function ( file , callback ) { var fullpath = path + file ; fs . stat ( fullpath , function ( e , stat ) { if ( e ) { callback ( e ) ; } else if ( stat . isDirectory ( ) ) { render . _renderPath ( fullpath , callback ) ; } else { if ( stat . isFile ( ) && match . exec ( file ) ) { munit . require ( fullpath ) ; } callback ( ) ; } } ) ; } , callback ) ; } ) ; }
Loads up each possible test file
Loads up each possible test file