Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top