forked from FallenTech/adwords-api
-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.js
executable file
·43 lines (38 loc) · 927 Bytes
/
test.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
36
37
38
39
40
41
42
43
var
gulp = require('gulp'),
mocha = require('gulp-mocha');
gulp.task('test', ['test:integration', 'test:unit']);
gulp.task(
'test:integration',
'run integration tests',
function(done) {
var argv = require('yargs')
.default('grep', null, 'test grep')
.default('reporter', 'nyan', 'test reporter')
.argv;
gulp.src(['./**/tests/integration/*.spec.js'])
.pipe(mocha({
grep: argv.grep,
reporter: argv.reporter,
timeout: 60000
}))
.on('end', done);
}
);
gulp.task(
'test:unit',
'run unit tests',
function(done) {
var argv = require('yargs')
.default('grep', null, 'test grep')
.default('reporter', 'nyan', 'test reporter')
.argv;
gulp.src(['./**/tests/unit/*.spec.js'])
.pipe(mocha({
grep: argv.grep,
reporter: argv.reporter,
timeout: 60000
}))
.on('end', done);
}
);