UNPKG

1.74 kBJavaScriptView Raw
1// Karma configuration
2// Generated on Tue Dec 01 2015 11:18:30 GMT+0200 (SAST)
3
4module.exports = function(config) {
5 config.set({
6 // base path that will be used to resolve all patterns (eg. files, exclude)
7 basePath: '',
8
9 // frameworks to use
10 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
11 frameworks: ['mocha', 'chai'],
12
13 files: ['lib/client.js', 'test/c2_websockets_embedded_sanity_encryptedpayloads.js'],
14
15 // list of files / patterns to load in the browser
16 // files: [
17 // 'build/crypto-min.js',
18 // {pattern: 'test/crypto-test.js', included: false}
19 // ],
20
21 // list of files to exclude
22 exclude: [],
23
24 // test results reporter to use
25 // possible values: 'dots', 'progress'
26 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
27 reporters: ['mocha'],
28
29 // web server port
30 port: 9876,
31
32 // enable / disable colors in the output (reporters and logs)
33 colors: true,
34
35 // level of logging
36 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
37 logLevel: config.LOG_INFO,
38
39 // enable / disable watching file and executing tests whenever any file changes
40 autoWatch: false,
41
42 // start these browsers
43 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
44 browsers: ['Chrome'],
45
46 // Continuous Integration mode
47 // if true, Karma captures browsers, runs the tests and exits
48 singleRun: true,
49
50 // Concurrency level
51 // how many browser should be started simultanous
52 concurrency: Infinity,
53
54 browserNoActivityTimeout: 60000
55 });
56};