@incdevco/framework
Version:
node.js lambda framework
106 lines (78 loc) • 2.74 kB
JavaScript
// Karma configuration
// Generated on Mon Dec 12 2016 17:07:28 GMT+0000 (UTC)
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: [
'chai',
'mocha',
'sinon'
],
// list of files / patterns to load in the browser
files: [
'node_modules/crypto-js/crypto-js.js',
'node_modules/angular/angular.js',
'node_modules/angular-animate/angular-animate.js',
'node_modules/angular-aria/angular-aria.js',
'node_modules/angular-material/angular-material.js',
'node_modules/angular-messages/angular-messages.js',
'node_modules/angular-route/angular-route.js',
'node_modules/angular-sanitize/angular-sanitize.js',
'node_modules/angular-touch/angular-touch.js',
'node_modules/angular-mocks/angular-mocks.js',
'https://sdk.amazonaws.com/js/aws-sdk-2.1.12.min.js',
'node_modules/amazon-cognito-js/dist/amazon-cognito.min.js',
'angular/**/*.js'
],
// list of files to exclude
exclude: [],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'clients/web/**/*.js': [
'coverage'
]
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: [
'mocha',
'progress'
],
// web server hostname
hostname: process.env.IP,
// web server port
port: process.env.PORT,
// 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: false,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [
'PhantomJS'
],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true,
// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity,
// code coverage
coverageReporter: {
type: 'html',
dir: 'coverage/'
},
// mocha reporter
mochaReporter: {
showDiff: true
}
});
};