-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulpfile.js
35 lines (31 loc) · 966 Bytes
/
gulpfile.js
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
32
33
34
35
const gulp = require('gulp');
const mocha = require('gulp-mocha');
gulp.task('default', () => {
return gulp.src('tests/**/*.js', {read: false})
// gulp-mocha needs filepaths so you can't have any plugins before it
.pipe(mocha({
reporter: 'nyan',
timeout: 30000}
));
});
gulp.task('light', () => {
return gulp.src('tests/**/*light*.js', {read: false})
// gulp-mocha needs filepaths so you can't have any plugins before it
.pipe(mocha({
reporter: 'nyan',
timeout: 30000}
));
});
gulp.task('buzzer', () => {
return gulp.src('tests/**/*buzzer*.js', {read: false})
// gulp-mocha needs filepaths so you can't have any plugins before it
.pipe(mocha({
reporter: 'nyan',
timeout: 30000}
));
});
gulp.task('button', () => {
return gulp.src('tests/**/*button*.js', {read: false})
// gulp-mocha needs filepaths so you can't have any plugins before it
.pipe(mocha({timeout: 30000}));
});