dev/modules/sysconfig/files/karma.conf.dev.js
changeset 642 5d037d947cd6
parent 630 36ef50b63372
equal deleted inserted replaced
640:947cd22ec986 642:5d037d947cd6
       
     1 // Karma configuration
       
     2 // Generated on Wed Jan 29 2014 15:32:16 GMT+0100 (CET)
       
     3 
       
     4 
       
     5 // SID: get WORKSPACE_URL configuration from one single file to customize
       
     6 var W = require ('./workspace.info.dev.js');
       
     7 
       
     8 module.exports = function(config) {
       
     9 	config.set({
       
    10 		// list of files or patterns to load in the browser, from current directory
       
    11 		files: [
       
    12 			{pattern: 'tests/**/*.js', included: true}
       
    13 		],
       
    14 		// list of files to exclude
       
    15 		exclude: [ ],
       
    16 		// Start these browsers, currently available:
       
    17 		// - Firefox	; Safari	(only Mac; run `npm install karma-safari-launcher` first)
       
    18 		// - Chrome		; ChromeCanary ; Opera (run `npm install karma-opera-launcher` first)
       
    19 		// - PhantomJS	; IE		(only Windows; run `npm install karma-ie-launcher` first)
       
    20 		browsers: W.BROWSERS,
       
    21 		// frameworks to use. SID: choosen mocha, added karma-e2e-dsl (end-to-end testing)
       
    22 		frameworks: ['mocha', 'karma-e2e-dsl'],
       
    23 		// SID: Karma will start and run somewhere else than '/', to allow proxying '/'
       
    24 		urlRoot: '/karma/',
       
    25 		// SID: directive added on karma-e2e-dsl purpose. Map of path-proxy pairs.
       
    26 		proxies: {
       
    27 			'/': W.WORKSPACE_URL
       
    28 		},
       
    29 		client: {
       
    30 			mocha: {
       
    31 				ui: 'tdd'
       
    32 			},
       
    33 			W: W // SID: exports the variable in the test execution browser window
       
    34 		},
       
    35 		// test results reporter to use : 'dots', 'progress', 'junit', 'growl', 'coverage'
       
    36 		reporters: ['progress'],
       
    37 		// web server port
       
    38 		port: 9876,
       
    39 		// enable / disable colors in the output (reporters and logs)
       
    40 		colors: true,
       
    41 		// level of logging : config.LOG_DISABLE || _ERROR || _WARN || _INFO || _DEBUG
       
    42 		logLevel: config.LOG_INFO,
       
    43 		// If browser does not capture in given timeout [ms], kill it
       
    44 		captureTimeout: 20000,
       
    45 		// enable / disable watching file and executing tests whenever any file changes
       
    46 		autoWatch: false,
       
    47 		// Continuous Integration mode : if true, it capture browsers, run tests and exit
       
    48 		singleRun: true,
       
    49 	});
       
    50 };