Question

I cannot quite figure out how can I use gulp with jasmine. I installed and configured it, so it runs my tests, but I am not sure how to introduce my javascript files to jasmine without the jasmin runner html.

Was it helpful?

Solution

Have you tried gulp-jasmine?

gulp.task('default', function () {
  gulp.src('spec/test.js').pipe(jasmine());
});

The src() method can take a glob like 'spec/**/*.js' and automatically run jasmine on all javascript files in the spec directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top