Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: bower_components/polymer-test-tools/karma-common.conf.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * @license
3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt
5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt
6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt
7 * Code distributed by Google as part of the polymer project is also
8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt
9 */
10
11 exports.mixin_common_opts = function(karma, opts) {
12 var browsers;
13 var os = require('os').type();
14 if (os === 'Darwin') {
15 browsers = ['Chrome', 'ChromeCanaryExperimental', 'Firefox', 'Safari'];
16 } else if (os === 'Windows_NT') {
17 browsers = ['Chrome', 'Firefox', 'IE'];
18 } else {
19 browsers = ['Chrome', 'Firefox'];
20 }
21 var all_opts = {
22 // list of files to exclude
23 exclude: [],
24
25 frameworks: ['mocha'],
26
27 // use dots reporter, as travis terminal does not support escaping sequences
28 // possible values: 'dots', 'progress', 'junit', 'teamcity'
29 // CLI --reporters progress
30 reporters: ['progress'],
31
32 // web server port
33 // CLI --port 9876
34 port: 9876,
35
36 // cli runner port
37 // CLI --runner-port 9100
38 runnerPort: 9100,
39
40 // enable / disable colors in the output (reporters and logs)
41 // CLI --colors --no-colors
42 colors: true,
43
44 // level of logging
45 // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_ DEBUG
46 // CLI --log-level debug
47 logLevel: karma.LOG_INFO,
48
49 // enable / disable watching file and executing tests whenever any file chan ges
50 // CLI --auto-watch --no-auto-watch
51 autoWatch: true,
52
53 // Custom launchers via BrowserStack.
54 customLaunchers: {
55 ChromeCanaryExperimental: {
56 base: 'ChromeCanary',
57 name: 'ChromeCanaryExperimental',
58 flags: ['--enable-experimental-web-platform-features', '--enable-html-im ports']
59 },
60 bs_iphone5: {
61 base: 'BrowserStack',
62 device: 'iPhone 5',
63 os: 'ios',
64 os_version: '6.0'
65 }
66 },
67
68 // Start these browsers, currently available:
69 // - Chrome
70 // - ChromeCanary
71 // - Firefox
72 // - Opera
73 // - Safari (only Mac)
74 // - PhantomJS
75 // - IE (only Windows)
76 // CLI --browsers Chrome,Firefox,Safari
77 browsers: browsers,
78
79 // If browser does not capture in given timeout [ms], kill it
80 // CLI --capture-timeout 5000
81 captureTimeout: 50000,
82
83 // Auto run tests on start (when browsers are captured) and exit
84 // CLI --single-run --no-single-run
85 singleRun: true,
86
87 // report which specs are slower than 500ms
88 // CLI --report-slower-than 500
89 reportSlowerThan: 500,
90
91 plugins: [
92 'karma-mocha',
93 'karma-browserstack-launcher',
94 'karma-chrome-launcher',
95 'karma-firefox-launcher',
96 'karma-ie-launcher',
97 'karma-ios-launcher',
98 'karma-safari-launcher',
99 'karma-script-launcher',
100 'karma-crbot-reporter'
101 ]
102 };
103 for (var key in opts) {
104 all_opts[key] = opts[key];
105 }
106 return all_opts;
107 };
OLDNEW
« no previous file with comments | « bower_components/polymer-test-tools/htmltest.js ('k') | bower_components/polymer-test-tools/mocha-htmltest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698