2018-01-22 21:30:40 +00:00
|
|
|
module.exports = function (config) {
|
|
|
|
let configuration = {
|
|
|
|
basePath: './tests',
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
frameworks: ['qunit'],
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
files: [
|
|
|
|
'../lib/utils/init.js',
|
|
|
|
'../lib/utils/*.js',
|
|
|
|
'../lib/logging/*.js',
|
|
|
|
'../lib/make/init.js',
|
|
|
|
'../lib/make/*.js',
|
|
|
|
'../lib/random/*.js',
|
|
|
|
'**/*.js'
|
|
|
|
],
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
exclude: [
|
|
|
|
],
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
preprocessors: {
|
|
|
|
'../lib/**/*.js': ['coverage']
|
|
|
|
},
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
reporters: ['progress', 'coverage'],
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
port: 9876,
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
colors: true,
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
logLevel: config.LOG_INFO,
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
autoWatch: true,
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
browsers: ['Chrome', 'Firefox'],
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
singleRun: true,
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
browserNoActivityTimeout: 30000,
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
customLaunchers: {
|
|
|
|
Chrome_travis_ci: {
|
|
|
|
base: 'Chrome',
|
|
|
|
flags: ['--no-sandbox']
|
|
|
|
}
|
|
|
|
},
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
coverageReporter: {
|
|
|
|
reporters: [
|
|
|
|
{ type: 'lcov', dir: 'coverage/' },
|
|
|
|
{ type: 'text-summary' }
|
|
|
|
]
|
2017-04-10 17:49:32 +00:00
|
|
|
}
|
2018-01-22 21:30:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (process.env.TRAVIS) {
|
|
|
|
configuration.browsers = ['Chrome_travis_ci', 'Firefox']
|
|
|
|
}
|
2017-04-10 17:49:32 +00:00
|
|
|
|
2018-01-22 21:30:40 +00:00
|
|
|
config.set(configuration)
|
|
|
|
}
|