Here is what i am using as of now.
gulp.task('test', function () {
return gulp.src([ './app/spec/*.js'])
.pipe(jasmine());
});
But in case of grunt, you can mention source files like this
jasmine: {
src: 'js/**/*.js',
options: {
specs: 'spec/**/*.js'
}
}
- Where can i mention the location for source files in case of gulp ?
- Another issues is that gulp only runs the test cases from first file, as of now all of them fails, and it doesn't go to the second files in the spec folder.
For issue 2 I see this gulp-jasmine option:
should run the rest of the tests.
Issue 1: There are a number of ways to indicate multiple sources for gulp.src such as
or set up a variable:
or I use something like this:
and then to use:
BTW, putting two questions into one post is generally frowned upon on SO.