Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Karma configuration
  2. // Generated on Wed Dec 14 2016 15:30:57 GMT-0300 (Hora estándar de Argentina)
  3.  
  4. module.exports = function(config) {
  5.   config.set({
  6.  
  7.     // base path that will be used to resolve all patterns (eg. files, exclude)
  8.     basePath: 'app',
  9.  
  10.     // frameworks to use
  11.     // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  12.     frameworks: ['mocha', 'sinon-chai', 'browserify'],
  13.  
  14.     // list of files / patterns to load in the browser
  15.     files: [
  16.       'bower_components/jquery/dist/jquery.js',
  17.       'bower_components/filer.js/src/filer.min.js',
  18.       'bower_components/nprogress/nprogress.js',
  19.       'bower_components/remodal/dist/remodal.js',
  20.       'bower_components/image-scale/image-scale.js',
  21.       '$MANAGER_WIDGET/Common/webapi/1.0/webapis.js',
  22.       '$MANAGER_WIDGET/Common/API/Widget.js',
  23.       '$MANAGER_WIDGET/Common/API/TVKeyValue.js',
  24.       '$MANAGER_WIDGET/Common/API/Plugin.js',
  25.       'config.js',
  26.       'scripts/vendor.js',
  27.       'scripts/**/*.spec.js'
  28.     ],
  29.  
  30.     // list of files to exclude
  31.     exclude: [
  32.     ],
  33.  
  34.     // preprocess matching files before serving them to the browser
  35.     // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  36.     preprocessors: {
  37.       'scripts/vendor.js': ['browserify'],
  38.       'scripts/**/*.spec.js': ['browserify']
  39.     },
  40.  
  41.     // bundle
  42.     browserify: {
  43.       debug: true,
  44.       transform: ['babelify'],
  45.       extensions : ['.js', '.es6']
  46.     },
  47.  
  48.     // test results reporter to use
  49.     // possible values: 'dots', 'progress'
  50.     // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  51.     reporters: ['nyan'],
  52.  
  53.     // web server port
  54.     port: 9876,
  55.  
  56.     // enable / disable colors in the output (reporters and logs)
  57.     colors: true,
  58.  
  59.     // level of logging
  60.     // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  61.     logLevel: config.LOG_INFO,
  62.  
  63.     // enable / disable watching file and executing tests whenever any file changes
  64.     autoWatch: true,
  65.  
  66.     // start these browsers
  67.     // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  68.     browsers: ['Chrome', 'Firefox'],
  69.  
  70.     // Continuous Integration mode
  71.     // if true, Karma captures browsers, runs the tests and exits
  72.     singleRun: process.env.TRAVIS_CI === 'true',
  73.  
  74.     // Concurrency level
  75.     // how many browser should be started simultaneous
  76.     concurrency: Infinity
  77.   })
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement