function plugin(suite) {
	// Default parsers
	var parsers = util.loadAll(true, __dirname, 'parsers');

	// Add the plugin's `root`
	suite.addRoot(path.join(__dirname, 'defaults'));

	// Initialize Yadda require for Mocha
	Yadda.plugins.mocha.StepLevelPlugin.init({
		container: this.global
	});

	// Register parsers
	parsers.forEach(function (data) {
		suite.constructor.addParser(data);
	});

	// Listen for a new Session creation
	suite.on('create session', function (session) {
		// Create a store for this plugin
		var plugin = session.plugin(pkg.name, new Store());

		session.on('pre run', function () {
			var libraries = Object.keys(plugin.libraries).map(function (name) {
				return plugin.libraries[name];
			});
			plugin.parser = Yadda.createInstance(libraries);
		});

		// session.on('parse file', function (file) {
		//   console.log('eeeeeeeeeee', file)
		//   parseFile(session, file);
		// //   // PARSE FILES HERE, instead of Session.prototype.parseFiles
		// });
	});

	return {
		// Register the plugin's name
		name: pkg.name
	};
}
function plugin(suite) {
	
	var parsers = util.loadAll(true, __dirname, 'parsers');

	
	suite.addRoot(path.join(__dirname, 'defaults'));

	
	Yadda.plugins.mocha.StepLevelPlugin.init({
		container: this.global
	});

	
	parsers.forEach(function (data) {
		suite.constructor.addParser(data);
	});

	
	suite.on('create session', function (session) {
		
		var plugin = session.plugin(pkg.name, new Store());

		session.on('pre run', function () {
			var libraries = Object.keys(plugin.libraries).map(function (name) {
				return plugin.libraries[name];
			});
			plugin.parser = Yadda.createInstance(libraries);
		});

		
		
		
		
		
	});

	return {
		
		name: pkg.name
	};
}
function plugin ( suite ) { // Default parsers var parsers = util . loadAll ( true , __dirname , 'parsers' ) ; // Add the plugin's `root` suite . addRoot ( path . join ( __dirname , 'defaults' ) ) ; // Initialize Yadda require for Mocha Yadda . plugins . mocha . StepLevelPlugin . init ( { container : this . global } ) ; // Register parsers parsers . forEach ( function ( data ) { suite . constructor . addParser ( data ) ; } ) ; // Listen for a new Session creation suite . on ( 'create session' , function ( session ) { // Create a store for this plugin var plugin = session . plugin ( pkg . name , new Store ( ) ) ; session . on ( 'pre run' , function ( ) { var libraries = Object . keys ( plugin . libraries ) . map ( function ( name ) { return plugin . libraries [ name ] ; } ) ; plugin . parser = Yadda . createInstance ( libraries ) ; } ) ; // session.on('parse file', function (file) { //   console.log('eeeeeeeeeee', file) //   parseFile(session, file); // //   // PARSE FILES HERE, instead of Session.prototype.parseFiles // }); } ) ; return { // Register the plugin's name name : pkg . name } ; }
The plugin

@param  {Suite} suite - The Suite instance
The plugin