var gulp = require('gulp');
var tsc = require('gulp-tsc');
var tape = require('gulp-tape');
var tapSpec = require('tap-spec');
var del = require('del');

gulp.task("test:clean", function(done) {
  del(['build-test/**']).then(function(paths) {
    console.log("=====\nDeleted the following files:\n" + paths.join('\n')+ "\n=====");
    done();
  });
});

gulp.task("test:build", function (done) {
  gulp.src(['test/**/*.ts'])
    .pipe(tsc())
    .pipe(gulp.dest('build-test/'))
    .on('end', done);
});

gulp.task("test", ["test:build"], function (done) {
  gulp.src('build-test/test/**/*.test.js')
    .pipe(tape({
      reporter: tapSpec()
    }));
});

@@ -490,32 +490,172 @@
 d', done);%0A%7D);%0A%0A
+gulp.task(%22test:run%22, function (done) %7B%0A  gulp.src('build-test/test/**/*.test.js')%0A    .pipe(tape(%7B%0A      reporter: tapSpec()%0A    %7D));%0A%7D);%0A%0A
 gulp.task(%22test%22

Create test:run