For issue 2 I see this gulp-jasmine option:
errorOnFail
Default: true
Stops the stream on failed tests.
.pipe(jasmine({errorOnFail: false}))
should run the rest of the tests.
Issue 1: There are a number of ways to indicate multiple sources for gulp.src such as
return gulp.src([ './app/spec/*.js', 'spec/**/*.js'])
or set up a variable:
var testSources = ['./app/spec/*.js', 'spec/**/*.js'];
return gulp.src(testSources)
or I use something like this:
var paths = {
html: {
src: "home.html",
temp: "./temp",
deploy: "./deploy/html"
},
sass: {
src: "./src/styles/scss/**/*.scss",
stylesFile: "./src/styles/scss/styles.scss"
},
css: {
src: "./temp/css/styles.css",
temp: "./temp/css",
deploy: "./deploy/css"
},
js: {
src: "./src/js/**/*.js",
temp: "./temp/js",
deploy: "./deploy/js"
}
};
and then to use:
function reloadJS() {
return gulp.src(paths.js.src)
.pipe(sourcemaps.init())
.pipe(sourcemaps.write("../sourcemaps", {includeContent:false,sourceRoot:"/js"}))
.pipe(gulp.dest(paths.js.temp))
.pipe(reload({ stream:true }));
}
BTW, putting two questions into one post is generally frowned upon on SO.