UNPKG

1.98 kBJavaScriptView Raw
1// Karma configuration
2// Generated on Thu Aug 18 2016 08:59:14 GMT+0200 (CEST)
3
4module.exports = function (config) {
5 config.set({
6
7 // base path that will be used to resolve all patterns (eg. files, exclude)
8 basePath: '',
9
10 // frameworks to use
11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
12 frameworks: ['jasmine'],
13
14 // list of files / patterns to load in the browser
15 files: [
16 'node_modules/babel-polyfill/dist/polyfill.js',
17 'dist/zetapush.min.js',
18 'test/**/*.spec.js'
19 ],
20
21 // list of files to exclude
22 exclude: [
23 ],
24
25 // preprocess matching files before serving them to the browser
26 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
27 preprocessors: {
28 },
29
30 // test results reporter to use
31 // possible values: 'dots', 'progress'
32 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
33 reporters: ['progress'],
34
35 // web server port
36 port: 9876,
37
38 // enable / disable colors in the output (reporters and logs)
39 colors: true,
40
41 // level of logging
42 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
43 logLevel: config.LOG_INFO,
44
45 // enable / disable watching file and executing tests whenever any file changes
46 autoWatch: false,
47
48 // start these browsers
49 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
50 browsers: ['PhantomJS_CI'],
51
52 // Continuous Integration mode
53 // if true, Karma captures browsers, runs the tests and exits
54 singleRun: true,
55
56 // Concurrency level
57 // how many browser should be started simultaneous
58 concurrency: Infinity,
59
60 // Custom Launchers
61 // configure custom launchers
62 customLaunchers: {
63 PhantomJS_CI: {
64 base: 'PhantomJS',
65 flags: ['--debug=true', '--disk-cache=false', '--ssl-protocol=any']
66 }
67 }
68 })
69}