提交 4f608401 编写于 作者: S Sercan

karma conf is not needed

上级 610729fe
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '.',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
{pattern: 'tests/components/_support/**', included: true},
{pattern: 'node_modules/react/dist/react-with-addons.js', included: true},
{pattern: 'src/client/components/**', included: true},
{pattern: 'tests/components/ui/**', included: true}
],
// list of files to exclude
exclude: [ '**/*.md' ],
// pre-process matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'**/*.jsx': ['react-jsx']
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
customLaunchers: {
Chrome_CI: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity
});
if (process.env.CI || process.env.TRAVIS || process.env.CIRCLECI) {
config.browsers = ['Chrome_CI', 'Firefox'];
config.singleRun = true;
} else {
config.browsers = ['Chrome'];
}
// FIXME Travis doesn't seem to run Karma + Chrome, but Chrome works with Chimp
if (process.env.TRAVIS) {
config.browsers = ['Firefox'];
config.singleRun = true;
}
};
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册