blob: ad4243214e83cae679219c9b8ebfe8dc1fccb463 [file] [log] [blame]
Kevin Lubick92c91712018-08-09 10:00:02 -04001module.exports = function(config) {
2 config.set({
3
4 // frameworks to use
5 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
6 frameworks: ['jasmine'],
7
8
9 // list of files / patterns to load in the browser
10 files: [
11 { pattern: 'npm-wasm/bin/test/pathkit.wasm', included:false, served:true},
12 { pattern: 'tests/*.json', included:false, served:true},
Kevin Lubicka0ba6122018-08-15 13:45:28 -040013 'tests/testReporter.js',
Kevin Lubick92c91712018-08-09 10:00:02 -040014 'npm-wasm/bin/test/pathkit.js',
15 'tests/*.spec.js'
16 ],
17
Kevin Lubick97d6d982018-08-10 15:53:16 -040018 proxies: {
19 "/pathkit/": "/base/npm-wasm/bin/test/"
20 },
21
Kevin Lubick92c91712018-08-09 10:00:02 -040022 // test results reporter to use
23 // possible values: 'dots', 'progress'
24 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
25 reporters: ['progress'],
26
27 // web server port
28 port: 4444,
29
30 // enable / disable colors in the output (reporters and logs)
31 colors: true,
32
33 // level of logging
34 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
35 logLevel: config.LOG_INFO,
36
37 // enable / disable watching file and executing tests whenever any file changes
38 autoWatch: true,
39
Kevin Lubickc6c48aa2018-08-17 15:00:43 -040040 browserDisconnectTimeout: 15000,
41 browserNoActivityTimeout: 15000,
42
Kevin Lubick92c91712018-08-09 10:00:02 -040043 // start these browsers
44 browsers: ['Chrome'],
45
46 // Continuous Integration mode
47 // if true, Karma captures browsers, runs the tests and exits
48 singleRun: false,
49
50 // Concurrency level
51 // how many browser should be started simultaneous
52 concurrency: Infinity,
53 })
54}