Plato on Github
Report Home
request/tests/browser/karma.conf.js
Maintainability
53.49
Lines of code
56
Difficulty
5.85
Estimated Errors
0.26
Function weight
By Complexity
By SLOC
'use strict' var istanbul = require('browserify-istanbul') module.exports = function(config) { config.set({ basePath: '../..', frameworks: ['tap', 'browserify'], preprocessors: { 'tests/browser/test.js': ['browserify'], '*.js,!(tests)/**/*.js': ['coverage'] }, files: [ 'tests/browser/test.js' ], port: 9876, reporters: ['dots', 'coverage'], colors: true, logLevel: config.LOG_ERROR, autoWatch: false, browsers: ['PhantomJS_without_security'], singleRun: true, plugins: [ 'karma-phantomjs-launcher', 'karma-coverage', 'karma-browserify', 'karma-tap' ], browserify: { debug: true, transform: [istanbul({ ignore: ['**/node_modules/**', '**/tests/**'] })] }, coverageReporter: { type: 'lcov', dir: 'coverage/' }, // Custom launcher to allowe self signed certs. customLaunchers: { PhantomJS_without_security: { base: 'PhantomJS', flags: [ '--ignore-ssl-errors=true' ] } } }) }