var gulp = require('gulp'),
    exec = require('child_process').exec;
 
gulp.task('test', function(cb) {
    exec(
		'node testrunner.js',
		{ cwd : 'tests' },
		function (err, stdout, stderr) {
			console.log(stdout);
			console.log(stderr);
			cb(err);
		}
	);
});

gulp.task('default', function() {
    gulp.watch(['**/*.js', 'tests/tests.json'], ['test']);
});

var gulp = require("gulp");
var exec = require("child_process").exec;

gulp.task("test", function(cb) {
  exec(
    "node testrunner.js",
    {cwd: "tests"},
    function(err, stdout, stderr) {
      console.log(stdout);
      console.log(stderr);
      cb(err);
    }
  );
});

gulp.task("default", function() {
  gulp.watch(["**/*.js", "tests/tests.json"], ["test"]);
});

Add an eslint config and update the code to match it.