Kevin Lubick | 92c9171 | 2018-08-09 10:00:02 -0400 | [diff] [blame] | 1 | module.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 Lubick | a0ba612 | 2018-08-15 13:45:28 -0400 | [diff] [blame] | 13 | 'tests/testReporter.js', |
Kevin Lubick | 92c9171 | 2018-08-09 10:00:02 -0400 | [diff] [blame] | 14 | 'npm-wasm/bin/test/pathkit.js', |
| 15 | 'tests/*.spec.js' |
| 16 | ], |
| 17 | |
Kevin Lubick | 97d6d98 | 2018-08-10 15:53:16 -0400 | [diff] [blame] | 18 | proxies: { |
| 19 | "/pathkit/": "/base/npm-wasm/bin/test/" |
| 20 | }, |
| 21 | |
Kevin Lubick | 92c9171 | 2018-08-09 10:00:02 -0400 | [diff] [blame] | 22 | // 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 Lubick | c6c48aa | 2018-08-17 15:00:43 -0400 | [diff] [blame^] | 40 | browserDisconnectTimeout: 15000, |
| 41 | browserNoActivityTimeout: 15000, |
| 42 | |
Kevin Lubick | 92c9171 | 2018-08-09 10:00:02 -0400 | [diff] [blame] | 43 | // 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 | } |