var fs = require('fs'),
	keystone = require('../index');

exports.init = function (shouldRunTests) {
	keystone.init();

	var typesLoc = __dirname + '/../fields/types';
	var types = fs.readdirSync(typesLoc);

	types.forEach(function(name) {
		var serverTestLoc = typesLoc + '/' + name + '/test/server.js';
		if (!fs.existsSync(serverTestLoc)) return;
		
		console.log(keystone.mongoose);

		var List = keystone.List(name + "Test", { nocreate: true });
		var test = require(serverTestLoc);

		if (test.initList) {
			test.initList(List);
		}

		List.register();

		if (shouldRunTests && test.testFieldType) {
			describe(name, function () {
				test.testFieldType(List);
			});
		}
	});
};

@@ -346,45 +346,8 @@
 urn;
-%0A%09%09%0A%09%09console.log(keystone.mongoose);
 %0A%0A%09%09

Remove keystone mongoose logging in fields test helper