-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-runner.js
33 lines (28 loc) · 889 Bytes
/
gulp-runner.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
// Gulp runner
let gulp = require('gulp');
// Karma deps
let karma = require('karma-extjs-jasmine-tester');
let karmaConf = require('./karma.conf');
// File system modules
let collector = require("./unit-tests/tests-collector");
collector.collectTests();
//noinspection JSUnresolvedFunction
gulp.task('coverage', function(config){
let options = karmaConf.getOptions(config);
let isDebug = process.env.DEBUG || false;
options.browsers = [isDebug ? 'Chrome' : 'ChromeHeadless'];
return karma.run({
staticPort: 9877,
coverage: true,
beforeSource: [
'ext/build/ext-modern-all-debug.js',
'unit-tests/methods-and-properties-collector.js',
'unit-tests/tests-collector.js'
],
afterSource: [
'unit-tests/app.js'
],
tests: [],
karma: options
});
});