aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/karma.conf.js
blob: b13f20576173d17330b2867ea2f089f3ab0979fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
'use strict';

// Karma configuration
module.exports = function (config) {
	config.set({
		// Frameworks to use
		frameworks: ['jasmine'],

		// List of files / patterns to load in the browser
		files: [
			'common/thirdparty/jquery/jquery.min.js',
			'common/thirdparty/es5-shim/es5-shim.min.js',
			'common/thirdparty/json3/lib/json3.min.js',
			'common/thirdparty/angular/angular.min.js',
			'common/thirdparty/angular-aria/angular-aria.min.js',
			'common/thirdparty/angular-resource/angular-resource.min.js',
			'common/thirdparty/angular-mocks/angular-mocks.js',
			'common/thirdparty/angular-cookies/angular-cookies.min.js',
			'common/thirdparty/angular-sanitize/angular-sanitize.min.js',
			'common/thirdparty/angular-animate/angular-animate.min.js',
			'common/thirdparty/angular-ui-router/angular-ui-router.min.js',			
			'common/thirdparty/angular-material/angular-material.min.js',
			'common/thirdparty/angular-messages/angular-messages.min.js',
			'common/thirdparty/angular-material-icons/angular-material-icons.min.js',
			'common/thirdparty/angular-material-data-table/md-data-table.min.js',
			'common/thirdparty/angular-translate/angular-translate.min.js',
			'common/thirdparty/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js',
			'app/app.js',
			'common/config/configuration.js',
			'common/services/httpService.js',
			'app/modules/home/homeModule.js',
			'app/modules/home/homeCtrl.js',
			'app/modules/home/homeRoute.js',
			'app/modules/home/homeService.js',
			'app/modules/home/home-test.js',

			'app/modules/home/serviceDelete/serviceDeleteCtrl.js',
			'app/modules/home/serviceDelete/serviceDeleteService.js',
			'app/modules/home/serviceDetails/serviceDetailsCtrl.js',
			'app/modules/home/serviceDetails/serviceDetailsService.js',
			'app/modules/home/serviceDelete/serviceDelete-test.js',
			'app/modules/home/serviceDetails/serviceDetails-test.js',
		],

		// Test results reporter to use
		// Possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
		//reporters: ['progress'],
		reporters: ['spec'],

		plugins : [
			'karma-jasmine',
			'karma-coverage',
			'karma-chrome-launcher',
			'karma-firefox-launcher',
			'karma-phantomjs-launcher',
			'karma-spec-reporter'
		],

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

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

		// Start these browsers, currently available:
		// - Chrome
		// - ChromeCanary
		// - Firefox
		// - Opera
		// - Safari (only Mac)
		// - PhantomJS
		// - IE (only Windows)
		browsers: ['PhantomJS'],

		// 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: true
	});
};