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

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

Issue 411763003: Set up mocha, chai and karma for sheriff-o-matic unit testing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm head/body tag 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 | « Tools/GardeningServer/bower.json ('k') | Tools/GardeningServer/package.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Karma configuration
2 // Generated on Mon Jul 21 2014 15:27:46 GMT-0700 (PDT)
3
4 module.exports = function(config) {
5 config.set({
6
7 // base path that will be used to resolve all patterns (eg. files, exclude)
8 basePath: '.',
9
10 // frameworks to use
11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
12 frameworks: ['mocha'],
13
14 // mocha setup
15 client: {
16 mocha: {
17 ui: 'bdd'
18 }
19 },
20
21 // list of files / patterns to load in the browser
22 files: [
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},
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},
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},
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},
31 {pattern: 'ui/**/*[^tests].{js,html,css}', watched: true, included: false, served: true},
32 'ui/test/*',
33 ],
34
35 // list of files to exclude
36 exclude: [
37 'scripts/*tests.js',
38 ],
39
40 // preprocess matching files before serving them to the browser
41 // available preprocessors: https://npmjs.org/browse/keyword/karma-preproces sor
42 preprocessors: {
43 },
44
45 // test results reporter to use
46 // possible values: 'dots', 'progress'
47 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
48 reporters: ['progress'],
49
50 // web server port
51 port: 9876,
52
53 // enable / disable colors in the output (reporters and logs)
54 colors: true,
55
56 // level of logging
57 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR N || config.LOG_INFO || config.LOG_DEBUG
58 logLevel: config.LOG_ERROR,
59
60 // enable / disable watching file and executing tests whenever any file chan ges
61 autoWatch: true,
62
63 // start these browsers
64 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc her
65 browsers: ['Chrome'],
66
67 // Continuous Integration mode
68 // if true, Karma captures browsers, runs the tests and exits
69 singleRun: false,
70
71 plugins: [
72 'karma-mocha',
73 'karma-chrome-launcher'
74 ]
75 });
76 };
OLDNEW
« no previous file with comments | « Tools/GardeningServer/bower.json ('k') | Tools/GardeningServer/package.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698