-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
65 lines (55 loc) · 1.88 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
// Karma configuration file
//
// For all available config options and default values, see:
// https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54
module.exports = function (config) {
'use strict';
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
frameworks: [
'mocha'
],
// list of files / patterns to load in the browser
files: [
{pattern: 'demo.html', included: false, watched: false}, //demo can be accessed at http://localhost:9876/base/demo.html
'bower_components/jquery/jquery.js',
'bower_components/lodash/dist/lodash.js',
'bower_components/eventEmitter/EventEmitter.js',
'bower_components/eventie/eventie.js',
'bower_components/imagesloaded/imagesloaded.js',
'bower_components/chai/chai.js',
'bower_components/sinon-chai/lib/sinon-chai.js',
'bower_components/sinonjs/sinon.js',
'carousel.js',
'test/**/*.js'
],
// use dots reporter, as travis terminal does not support escaping sequences
// possible values: 'dots', 'progress', 'junit', 'teamcity'
// CLI --reporters progress
reporters: ['dots'],
// enable / disable watching file and executing tests whenever any file changes
// CLI --auto-watch --no-auto-watch
autoWatch: true,
// start these browsers
// CLI --browsers Chrome,Firefox,Safari
browsers: [
'Chrome',
// 'Firefox'
],
// if browser does not capture in given timeout [ms], kill it
// CLI --capture-timeout 5000
captureTimeout: 20000,
// auto run tests on start (when browsers are captured) and exit
// CLI --single-run --no-single-run
singleRun: false,
plugins: [
'karma-mocha',
'karma-requirejs',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-ie-launcher',
'karma-safari-launcher'
]
});
};