forked from juju/juju-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma-mocha-old.conf.js.tmpl
155 lines (134 loc) · 6.53 KB
/
karma-mocha-old.conf.js.tmpl
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
// Karma configuration
// Generated on Tue Sep 01 2015 11:00:43 GMT-0600 (CST)
'use strict';
module.exports = function(config) {
config.set({
// Mocha timeout configuration.
client: {
mocha: {timeout : 5000}
},
// Set up the log level so that console.log messages are visible.
browserConsoleLogOptions: {level: 'log'},
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'chai-sinon'],
// List of files / patterns to load in the browser; Karma is smart enough,
// with the preprocessors, to watch the source files and serve the compiled
// files.
files: [
'node_modules/keysim/dist/keysim.js',
'jujugui/static/gui/build/modules.js',
'jujugui/static/gui/src/test/assets/chai.js',
'jujugui/static/gui/src/test/globalconfig.js',
'jujugui/static/gui/build/app/assets/javascripts/yui/yui/yui.js',
'jujugui/static/gui/build/app/assets/javascripts/yui/loader/loader.js',
'jujugui/static/gui/src/test/utils.js',
'jujugui/static/gui/src/test/factory.js',
'jujugui/static/gui/build/app/assets/javascripts/d3.js',
'jujugui/static/gui/src/app/state/state.js',
'jujugui/static/gui/src/app/user/user.js',
'jujugui/static/gui/src/app/jujulib/index.js',
'jujugui/static/gui/src/app/jujulib/charmstore.js',
'jujugui/static/gui/src/app/jujulib/plans.js',
'jujugui/static/gui/src/app/jujulib/payment.js',
'jujugui/static/gui/src/app/jujulib/stripe.js',
'jujugui/static/gui/src/app/jujulib/terms.js',
'jujugui/static/gui/src/app/jujulib/reconnecting-websocket.js',
'jujugui/static/gui/src/app/jujulib/urls.js',
'jujugui/static/gui/src/app/jujulib/bakery-factory.js',
// It's possible we can remove some or all of these below.
'jujugui/static/gui/build/app/assets/javascripts/bind-function-pollyfill.js',
'jujugui/static/gui/build/app/assets/javascripts/react-with-addons.js',
'jujugui/static/gui/build/app/assets/javascripts/react-dom.js',
'jujugui/static/gui/build/app/assets/javascripts/classnames.js',
'jujugui/static/gui/build/app/assets/javascripts/marked.js',
'jujugui/static/gui/build/app/assets/javascripts/clipboard.js',
'jujugui/static/gui/build/app/assets/javascripts/react-click-outside.js',
'jujugui/static/gui/build/app/assets/javascripts/ReactDnD.min.js',
'jujugui/static/gui/build/app/assets/javascripts/ReactDnDHTML5Backend.min.js',
'jujugui/static/gui/build/app/assets/javascripts/diff.js',
'jujugui/static/gui/build/app/assets/javascripts/prism.js',
'jujugui/static/gui/build/app/assets/javascripts/prism-languages.js',
'jujugui/static/gui/build/app/utils/component-test-utils.js',
'jujugui/static/gui/build/app/utils/jujulib-conversion-utils.js',
// It's possible we can remove some or all of these above.
'jujugui/static/gui/src/test/test_app_hotkeys.js',
'jujugui/static/gui/src/test/test_app.js',
'jujugui/static/gui/src/test/test_autodeploy_extension.js',
'jujugui/static/gui/src/test/test_app_renderer_extension.js',
'jujugui/static/gui/src/test/test_bakery.js',
'jujugui/static/gui/src/test/test_bundle_import_notifications.js',
'jujugui/static/gui/src/test/test_bundle_importer.js',
'jujugui/static/gui/src/test/test_changes_utils.js',
'jujugui/static/gui/src/test/test_console.js',
'jujugui/static/gui/src/test/test_cookies_app_extension.js',
'jujugui/static/gui/src/test/test_d3_components.js',
'jujugui/static/gui/src/test/test_endpoints.js',
'jujugui/static/gui/src/test/test_entity_extension.js',
'jujugui/static/gui/src/test/test_env_change_set.js',
'jujugui/static/gui/src/test/test_env_api.js',
'jujugui/static/gui/src/test/test_controller_api.js',
'jujugui/static/gui/src/test/test_env.js',
'jujugui/static/gui/src/test/test_environment_view.js',
'jujugui/static/gui/src/test/test_event_tracker.js',
'jujugui/static/gui/src/test/test_ghost_deployer_extension.js',
'jujugui/static/gui/src/test/test_landscape.js',
'jujugui/static/gui/src/test/test_login.js',
'jujugui/static/gui/src/test/test_model_bundle.js',
'jujugui/static/gui/src/test/test_model_controller.js',
'jujugui/static/gui/src/test/test_model_handlers.js',
'jujugui/static/gui/src/test/test_model.js',
'jujugui/static/gui/src/test/test_panzoom.js',
'jujugui/static/gui/src/test/test_relation_utils.js',
'jujugui/static/gui/src/test/test_service_module.js',
// test_startup.js was skipped in the old suite.
//'jujugui/static/gui/src/test/test_startup.js',
'jujugui/static/gui/src/test/test_topology_relation.js',
'jujugui/static/gui/src/test/test_topology_utils.js',
'jujugui/static/gui/src/test/test_topology.js',
'jujugui/static/gui/src/test/test_utils.js',
'jujugui/static/gui/src/test/test_viewport_module.js',
'jujugui/static/gui/src/test/test_web_handler.js',
'jujugui/static/gui/src/test/test_zip_utils.js',
// Test Assets
{
pattern: 'jujugui/static/gui/src/test/data/*.json',
watched: false,
included: false,
served: true,
nocache: false
}
],
proxies: {
'/dev/combo': 'http://0.0.0.0:{TEST_PORT}/dev/combo?',
'/data': 'http://0.0.0.0:{TEST_PORT}/test/data',
'/base/jujugui/static/gui/src/test/': 'http://0.0.0.0:{TEST_PORT}/test/'
},
// list of files to exclude
exclude: [
'jujugui/static/gui/build/app/components/**/*-min.js'
],
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['mocha'],
// web server and port
hostname: '0.0.0.0',
port: 6543,
// 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: false,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['PhantomJS'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true
});
};