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

Side by Side Diff: Tools/GardeningServer/karma.conf.js

Issue 462453002: Sheriff-O-Matic: Transition more unit tests to mocha. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase and fix Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Tools/GardeningServer/test/run-unit-tests.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Karma configuration 1 // Karma configuration
2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT) 2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT)
3 3
4 module.exports = function(config) { 4 module.exports = function(config) {
5 config.set({ 5 config.set({
6 6
7 // base path that will be used to resolve all patterns (eg. files, exclude) 7 // base path that will be used to resolve all patterns (eg. files, exclude)
8 basePath: '.', 8 basePath: '.',
9 9
10 // frameworks to use 10 // frameworks to use
11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter 11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
12 frameworks: ['mocha'], 12 frameworks: ['mocha'],
13 13
14 // mocha setup 14 // mocha setup
15 client: { 15 client: {
16 mocha: { 16 mocha: {
17 ui: 'bdd' 17 ui: 'bdd'
18 } 18 }
19 }, 19 },
20 20
21 // list of files / patterns to load in the browser 21 // list of files / patterns to load in the browser
22 files: [ 22 files: [
23 {pattern: 'bower_components/chai/chai.js', watched: true, included: true, served: true}, 23 {pattern: 'bower_components/chai/chai.js', watched: true, included: true, served: true},
24 {pattern: 'bower_components/sugar/release/sugar-full.development.js', watc hed: true, included: true, served: true}, 24 {pattern: 'bower_components/sugar/release/sugar-full.development.js', watc hed: true, included: true, served: true},
25 {pattern: 'bower_components/platform/platform.js', watched: true, included : true, served: true}, 25 {pattern: 'bower_components/platform/platform.js', watched: true, included : true, served: true},
26 {pattern: 'bower_components/polymer/polymer.html', watched: true, included : true, served: true}, 26 {pattern: 'bower_components/polymer/polymer.html', watched: true, included : true, served: true},
27 {pattern: 'bower_components/**/*.{js,html,css,map}', watched: true, includ ed: false, served: true}, 27 {pattern: 'bower_components/**/*.{js,html,css,map}', watched: true, includ ed: false, served: true},
28 {pattern: 'node_modules/mocha/mocha.js', watched: true, included: true, se rved: true}, 28 {pattern: 'node_modules/mocha/mocha.js', watched: true, included: true, se rved: true},
29 {pattern: 'polymer-load-warning.html', watched: true, included: false, ser ved: true}, 29 {pattern: 'polymer-load-warning.html', watched: true, included: false, ser ved: true},
30 {pattern: 'model/**/*[^tests].html', watched: true, included: false, serve d: true}, 30 {pattern: 'model/*.html', watched: true, included: false, served: true},
31 {pattern: 'ui/**/*[^tests].{js,html,css}', watched: true, included: false, served: true}, 31 {pattern: 'model/test/*.html', watched: true, included: true, served: true },
32 {pattern: 'scripts/*.js', watched: true, included: true, served: true},
33 {pattern: 'ui/*.html', watched: true, included: false, served: true},
32 'ui/test/*', 34 'ui/test/*',
33 ], 35 ],
34 36
35 // list of files to exclude 37 // list of files to exclude
36 exclude: [ 38 exclude: [
39 'model/*tests.html',
37 'scripts/*tests.js', 40 'scripts/*tests.js',
41 'ui/*tests.html',
38 ], 42 ],
39 43
40 // preprocess matching files before serving them to the browser 44 // preprocess matching files before serving them to the browser
41 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces sor 45 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces sor
42 preprocessors: { 46 preprocessors: {
43 }, 47 },
44 48
45 // test results reporter to use 49 // test results reporter to use
46 // possible values: 'dots', 'progress' 50 // possible values: 'dots', 'progress'
47 // available reporters: https://npmjs.org/browse/keyword/karma-reporter 51 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
(...skipping 19 matching lines...) Expand all
67 // Continuous Integration mode 71 // Continuous Integration mode
68 // if true, Karma captures browsers, runs the tests and exits 72 // if true, Karma captures browsers, runs the tests and exits
69 singleRun: false, 73 singleRun: false,
70 74
71 plugins: [ 75 plugins: [
72 'karma-mocha', 76 'karma-mocha',
73 'karma-chrome-launcher' 77 'karma-chrome-launcher'
74 ] 78 ]
75 }); 79 });
76 }; 80 };
OLDNEW
« no previous file with comments | « no previous file | Tools/GardeningServer/test/run-unit-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698