NullRefExcep / gulp-casperjs

gulp plugin for CasperJS
MIT License
12 stars 11 forks source link

Running only first test #6

Closed rails4sandeep closed 8 years ago

rails4sandeep commented 8 years ago

Passing `./tests/*.js' is running only the first test. Is there a fix or work around for this

var paths = {
tests: [ '**/*.js' ]
}
gulp.task('ui-test', function () {
  gulp.src(paths.tests)
    .pipe(casperJs());
});
rails4sandeep commented 8 years ago

This is due to the setTimeout I added to one of the tests. Once I removed, all the tests are running Removed the below from one of the tests

    setTimeout(function () {
      phantom.exit();
    }, 0);

And all the tests started running