Advertisement
fahrul11

karma.conf angular

Apr 22nd, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = function(config){
  2.   config.set({
  3.  
  4.     basePath : '../',
  5.  
  6.     files : [
  7.       'app/bower_components/angular/angular.js',
  8.       'app/bower_components/angular-route/angular-route.js',
  9.       'app/bower_components/angular-mocks/angular-mocks.js',
  10.       'app/js/**/*.js',
  11.       'test/unit/**/*.js'
  12.     ],
  13.  
  14.     autoWatch : true,
  15.  
  16.     frameworks: ['jasmine'],
  17.  
  18.     // browsers : ['Chrome', 'Firefox'],
  19.     browsers : ['PhantomJS'],
  20.     hostname : process.env.IP,
  21.     port : process.env.PORT,
  22.     runnerPort : 0,
  23.  
  24.     plugins : [
  25.             'karma-chrome-launcher',
  26.             'karma-firefox-launcher',
  27.             'karma-phantomjs-launcher',
  28.             'karma-jasmine'
  29.             ],
  30.  
  31.     junitReporter : {
  32.       outputFile: 'test_out/unit.xml',
  33.       suite: 'unit'
  34.     }
  35.  
  36.   });
  37. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement