title: How do I use gulp with tape?
body: <p>I'm trying to integrate Gulp with Tape (<a href="https://github.com/substack/tape" rel="nofollow">https://github.com/substack/tape</a>), the NodeJs test harness. </p>
  
  <p>How can I do this? There doesn't seem to be an existing gulp plugin. </p>
  
  <p>I've see this, but it looks really inelegant:</p>
  
  <pre><code>var shell = require('gulp-shell')
  
  gulp.task('exec-tests', shell.task([
    'tape test/* | faucet',
  ]));
  
  gulp.task('autotest', ['exec-tests'], function() {
    gulp.watch(['app/**/*.js', 'test/**/*.js'], ['exec-tests']);
  });
  </code></pre>
  
  <p>I've tried this, which looks like it should work:</p>
  
  <pre><code>var tape = require('tape');
  var spec = require('tap-spec');
  
  
  gulp.task('test', function() {
      return gulp.src(paths.serverTests, {
              read: false
          })
          .pipe(tape.createStream())
          .pipe(spec())
          .pipe(process.stdout);
  });
  </code></pre>
  
  <p>but I get a <code>TypeError: Invalid non-string/buffer chunk</code> error</p>