Unreviewed, rolling out r216677.
[WebKit-https.git] / PerformanceTests / Speedometer / resources / todomvc / dependency-examples / flight / karma.conf.js
1 // Karma configuration file
2 //
3 // For all available config options and default values, see:
4 // https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54
5
6 module.exports = function (config) {
7     'use strict';
8
9     config.set({
10         // base path, that will be used to resolve files and exclude
11         basePath: '',
12
13         frameworks: ['jasmine'],
14
15         // list of files / patterns to load in the browser
16         files: [
17             // loaded without require
18             'bower_components/es5-shim/es5-shim.js',
19             'bower_components/es5-shim/es5-sham.js',
20             'bower_components/jquery/jquery.js',
21             'bower_components/jasmine-flight/lib/jasmine-flight.js',
22             'bower_components/jasmine-jquery/lib/jasmine-jquery.js',
23
24             // hack to load RequireJS after the shim libs
25             'node_modules/karma-requirejs/lib/require.js',
26             'node_modules/karma-requirejs/lib/adapter.js',
27
28             // loaded with require
29             { pattern: 'bower_components/flight/**/*.js', included: false },
30             { pattern: 'bower_components/depot/**/*.js', included: false },
31             { pattern: 'bower_components/requirejs-text/text.js', included: false },
32             { pattern: 'app/**/*.js', included: false },
33             { pattern: 'app/**/*.html', included: false },
34             { pattern: 'test/spec/**/*_spec.js', included: false },
35             { pattern: 'test/fixture/*.html', included: false },
36
37             // Entry point for karma.
38             'test/test-main.js',
39
40             { pattern: 'test/mock/*.js', included: true }
41         ],
42
43         // list of files to exclude
44         exclude: [],
45
46         // use dots reporter, as travis terminal does not support escaping sequences
47         // possible values: 'dots', 'progress'
48         // CLI --reporters progress
49         reporters: ['dots'],
50
51         // enable / disable watching file and executing tests whenever any file changes
52         // CLI --auto-watch --no-auto-watch
53         autoWatch: true,
54
55         // Start these browsers, currently available:
56         // - Chrome
57         // - ChromeCanary
58         // - Firefox
59         // - Opera
60         // - Safari (only Mac)
61         // - PhantomJS
62         // - IE (only Windows)
63         // CLI --browsers Chrome, Firefox, Safari
64         browsers: ['Chrome', 'Firefox'],
65
66         // If browser does not capture in given timeout [ms], kill it
67         // CLI --capture-timeout 5000
68         captureTimeout: 20000,
69
70         // Auto run tests on start (when browsers are captured) and exit
71         // CLI --single-run --no-single-run
72         singleRun: false,
73
74         plugins: [
75             'karma-jasmine',
76             'karma-requirejs',
77             'karma-chrome-launcher',
78             'karma-firefox-launcher',
79             'karma-ie-launcher',
80             'karma-phantomjs-launcher',
81             'karma-safari-launcher'
82         ]
83     });
84 };