forked from Hacklone/private-bower
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
31 lines (26 loc) · 702 Bytes
/
gulpfile.js
File metadata and controls
31 lines (26 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var runSequence = require('run-sequence');
gulp.task('test', function(callback) {
runSequence('unit-test', 'feature-test', callback);
});
gulp.task('unit-test', function () {
var files = [
'lib/**/*.js'
];
return gulp.src(files, {read: false})
.pipe(mocha({reporter: 'nyan'}));
});
gulp.task('feature-test', function() {
var files = [
'lib/**/*.js',
'!lib/**/*.spec.js',
'features/**/*.js',
'!features/sandbox/**/*.js'
];
return gulp.src(files, {read: false})
.pipe(mocha({
timeout: 6000,
reporter: 'nyan'
}));
});