// Karma configuration
// Generated on Fri Feb 07 2014 10:58:31 GMT+0100 (Paris, Madrid)

module.exports = function (config) {
    config.set({

        // base path, that will be used to resolve files and exclude
        basePath: '../src/main/webapp/bookcat',


        // Used to change your templates/views into js testable files.

        // frameworks to use
        frameworks: ['jasmine'],


        // list of files / patterns to load in the browser
        files: [
            '../bower_components/angular/angular.js',
            '../bower_components/**/*.js',
            'js/**/*.js',
            '../../../../test/unit/**/*Spec.js',
            'templates/partials/*.html'
        ],


        // list of files to exclude
        exclude: [
            '../bower_components/**/*Spec.js',
            '../bower_components/**/*.conf.js',
            '../bower_components/**/*file.js',
            '../bower_components/**/index.js',
            '../bower_components/**/*.min.js',
            '../bower_components/angular-translate-loader-*/**/*.*',
            '../bower_components/angular-translate-storage-*/**/*.*'
            
        ],

        // generate js files from html templates
        preprocessors: {
            'templates/partials/*.html': 'ng-html2js'
        },

        // test results reporter to use
        // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
	    // available reporters: https://npmjs.org/browse/keyword/karma-reporter
    	reporters: ['progress', 'junit'],

    	junitReporter: {
      		outputFile: '../../../../reports/unit/report.xml',
      		suite: ''
    	},


        // 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_DEBUG,


        // enable / disable watching file and executing tests whenever any file changes
        autoWatch: true,


        // Start these browsers, currently available:
        // - Chrome
        // - ChromeCanary
        // - Firefox
        // - Opera (has to be installed with `npm install karma-opera-launcher`)
        // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
        // - PhantomJS
        // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
        browsers: ['Chrome'],


        // If browser does not capture in given timeout [ms], kill it
        captureTimeout: 60000,


        // Continuous Integration mode
        // if true, it capture browsers, run tests and exit
        singleRun: false
    });
};

@@ -119,16 +119,178 @@
 onfig) %7B
+%0A%0A    var basePath= '../',%0A        testsPath= 'test/unit/',%0A        extLibsPath= 'src/main/webapp/bower_components',%0A        appPath= 'src/main/webapp/bookcat';%0A%0A
 %0A    con
@@ -391,36 +391,16 @@
 th: 
-'../src/main/webapp/bookcat'
+basePath
 ,%0A%0A%0A
@@ -623,36 +623,35 @@
         
-'../bower_components
+    extLibsPath + '
 /angular
@@ -680,153 +680,129 @@
     
-'../bower_components/**/*.js',%0A            'js/**/*.js',%0A            '../../../../test/unit/**/*Spec.js',%0A            'templates/partials/*.html'
+    extLibsPath + '/angular-route/angular-route.js',%0A                extLibsPath + '/angular-cookies/angular-cookies.js',
 %0A   
@@ -806,29 +806,24 @@
         
-%5D,%0A%0A%0A
         
 // list 
@@ -818,357 +818,321 @@
     
-// list of files to exclude%0A        exclude: %5B%0A            '../bower_components/**/*Spec.js',%0A            '../bower_components/**/*.conf.js',%0A            '../bower_components/**/*file.js',%0A            '../bower_components/**/index.js',%0A            '../bower_components/**/*.min.js',%0A            '../bower_components/angular-translate-loader-*
+extLibsPath + '/angular-translate/angular-translate.js',%0A                extLibsPath + '/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js',%0A                extLibsPath + '/angular-resource/angular-resource.js',%0A                extLibsPath + '/angular-mocks/angular-mocks.js',%0A                appPath + '/js
 /**/*.
-*
+js
 ',%0A 
@@ -1146,78 +1146,43 @@
     
-'../bower_components/angular-translate-storage-*/**/*.*'%0A            %0A
+    testsPath + '/**/*Spec.js'%0A    
     

Update KarmaConf