forked from EasyERP/EasyERP_open_source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
86 lines (62 loc) · 3.49 KB
/
karma.conf.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'requirejs', 'sinon'],
files: [
'test/uiSpecs/testMain.js',
'public/css/*.css',
{pattern: 'test/uiSpecs/fixtures/**/*' /* , included: false*/},
{pattern: 'public/js/libs/*.js', included: false, watching: false},
{pattern: 'public/js/libs/**/!(*test|*Spec).js', included: false, watching: false},
{pattern: 'test/uiSpecs/jqueryPrivate.js', included: false, watching: false},
/* {pattern: 'public/js/populate.js', included: false, watching: false},
{pattern: 'public/js/dataService.js', included: false, watching: false},
{pattern: 'public/js/router.js', included: false, watching: false},*/
{pattern: 'node_modules/chai/chai.js', included: false, watching: false},
{pattern: 'node_modules/chai-jquery/chai-jquery.js', included: false, watching: false},
{pattern: 'node_modules/sinon-chai/lib/sinon-chai.js', included: false, watching: false},
{pattern: 'constants/test/*.js', included: false, watching: false},
/* {pattern: 'constants/test/dashboardVacation.js', included: false, watching: false},
{pattern: 'constants/test/filter.js', included: false, watching: false},
{pattern: 'constants/test/projects.js', included: false, watching: false}, */
{pattern: 'public/js/Validation.js', included: false, watching: false},
{pattern: 'public/js/collections/**/*.js', included: false, watching: false},
{pattern: 'public/js/models/*.js', included: false, watching: false},
{pattern: 'public/js/helpers/*.js', included: false, watching: false},
{pattern: 'public/js/views/**/*.js', included: false, watching: false},
{pattern: 'public/js/constants/*.js', included: false, watching: false},
{pattern: 'public/js/services/**/*.js', included: false, watching: false},
{pattern: 'public/js/mixins/**/*.js', included: false, watching: false},
{pattern: 'public/templates/**/*.html', included: false, watching: false},
{pattern: 'public/js/*.js', included: false, watching: false},
{pattern: 'public/js/constants/*.js', included: false, watching: false},
{pattern: 'test/uiSpecs/models/integrationModel.test.js', included: false /* , watching: true*/},
{pattern: 'test/uiSpecs/collections/integrationCollection.test.js', included: false /* , watching: true*/},
//{pattern: 'test/uiSpecs/views/login.test.js', included: false /* , watching: true*/},
{pattern: 'test/uiSpecs/views/integrations.test.js', included: false /* , watching: true*/}
],
exclude: [],
preprocessors: {
'public/js/models/**/*.js' : ['coverage'],
'public/js/views/**/*.js' : ['coverage'],
'public/js/collections/**/*.js': ['coverage']
},
coverageReporter: {
type: 'html',
dir : 'coverage/'
},
reporters: ['progress', 'coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
/* autoWatch: true, */
browsers: [/*'Firefox',*/ 'Chrome'/* , 'Safari', 'IE', 'PhantomJS'*/],
singleRun: true,
client: {
mocha: {
ui: 'bdd'
}
},
concurrency: Infinity
});
};