test-suite/karma.conf.js
changeset 638 61dc5370b351
parent 627 7d93eccbb565
equal deleted inserted replaced
637:71d87ca43d6a 638:61dc5370b351
     1 // Karma configuration
     1 // Karma configuration
     2 // Generated on Wed Jan 29 2014 15:32:16 GMT+0100 (CET)
     2 // Generated on Wed Jan 29 2014 15:32:16 GMT+0100 (CET)
     3 
     3 
     4 
     4 
     5 // SID: get WORKSPACE_URL configuration from one single file to customize
     5 // SID: get WORKSPACE_URL configuration from one single file to customize
     6 var w = require ('./workspace.info.js');
     6 var W = require ('./workspace.info.js');
     7 
     7 
     8 module.exports = function(config) {
     8 module.exports = function(config) {
     9 	config.set({
     9 	config.set({
    10 		// list of files or patterns to load in the browser, from current directory
    10 		// list of files or patterns to load in the browser, from current directory
    11 		files: [
    11 		files: [
    15 		exclude: [ ],
    15 		exclude: [ ],
    16 		// Start these browsers, currently available:
    16 		// Start these browsers, currently available:
    17 		// - Firefox	; Safari	(only Mac; run `npm install karma-safari-launcher` first)
    17 		// - Firefox	; Safari	(only Mac; run `npm install karma-safari-launcher` first)
    18 		// - Chrome		; ChromeCanary ; Opera (run `npm install karma-opera-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)
    19 		// - PhantomJS	; IE		(only Windows; run `npm install karma-ie-launcher` first)
    20 		browsers: w.BROWSERS,
    20 		browsers: W.BROWSERS,
    21 		// frameworks to use. SID: choosen mocha, added karma-e2e-dsl (end-to-end testing)
    21 		// frameworks to use. SID: choosen mocha, added karma-e2e-dsl (end-to-end testing)
    22 		frameworks: ['mocha', 'karma-e2e-dsl'],
    22 		frameworks: ['mocha', 'karma-e2e-dsl'],
    23 		// SID: Karma will start and run somewhere else than '/', to allow proxying '/'
    23 		// SID: Karma will start and run somewhere else than '/', to allow proxying '/'
    24 		urlRoot: '/karma/',
    24 		urlRoot: '/karma/',
    25 		// SID: directive added on karma-e2e-dsl purpose. Map of path-proxy pairs.
    25 		// SID: directive added on karma-e2e-dsl purpose. Map of path-proxy pairs.
    26 		proxies: {
    26 		proxies: {
    27 			'/': w.WORKSPACE_URL
    27 			'/': W.WORKSPACE_URL
    28 		},
    28 		},
    29 		client: {
    29 		client: {
    30 			mocha: {
    30 			mocha: {
    31 				ui: 'tdd'
    31 				ui: 'tdd'
    32 			},
    32 			},
    33 			w: w // SID: exports the variable in the test execution browser window
    33 			W: W // SID: exports the variable in the test execution browser window
    34 		},
    34 		},
    35 		// test results reporter to use : 'dots', 'progress', 'junit', 'growl', 'coverage'
    35 		// test results reporter to use : 'dots', 'progress', 'junit', 'growl', 'coverage'
    36 		reporters: ['progress'],
    36 		reporters: ['progress'],
    37 		// web server port
    37 		// web server port
    38 		port: 9876,
    38 		port: 9876,