2014-01-02 01:40:25 +08:00
|
|
|
module.exports = function(config) {
|
2014-04-06 16:47:14 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
2014-01-02 01:40:25 +08:00
|
|
|
config.set({
|
2015-09-15 19:23:36 +08:00
|
|
|
basePath: __dirname + '/public_gen',
|
2014-01-02 01:40:25 +08:00
|
|
|
|
2014-08-07 16:42:05 +08:00
|
|
|
frameworks: ['mocha', 'requirejs', 'expect', 'sinon'],
|
2014-01-02 01:40:25 +08:00
|
|
|
|
|
|
|
|
// list of files / patterns to load in the browser
|
|
|
|
|
files: [
|
2015-09-15 19:23:36 +08:00
|
|
|
'test/test-main.js',
|
|
|
|
|
{pattern: 'app/**/*.js', included: false},
|
|
|
|
|
{pattern: 'vendor/**/*.js', included: false},
|
|
|
|
|
{pattern: 'test/**/*.js', included: false}
|
2014-01-02 01:40:25 +08:00
|
|
|
],
|
|
|
|
|
|
|
|
|
|
// list of files to exclude
|
2014-03-22 20:45:02 +08:00
|
|
|
exclude: [],
|
2014-01-02 01:40:25 +08:00
|
|
|
|
2014-08-06 21:57:40 +08:00
|
|
|
reporters: ['dots'],
|
2014-01-02 01:40:25 +08:00
|
|
|
port: 9876,
|
|
|
|
|
colors: true,
|
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
|
autoWatch: true,
|
2014-08-07 20:58:57 +08:00
|
|
|
browsers: ['PhantomJS'],
|
2014-01-02 01:40:25 +08:00
|
|
|
captureTimeout: 60000,
|
2014-08-07 20:58:57 +08:00
|
|
|
singleRun: true,
|
2015-09-28 21:23:53 +08:00
|
|
|
autoWatchBatchDelay: 1000,
|
2014-08-07 20:58:57 +08:00
|
|
|
|
2014-01-02 01:40:25 +08:00
|
|
|
});
|
2015-09-11 14:00:13 +08:00
|
|
|
|
2014-01-02 01:40:25 +08:00
|
|
|
};
|