raspberryGPIOhtmlserver/node_modules/toastr-master/karma.conf.js
node_modules/toastr-master/karma.conf.jsRaw
1// Karma configuration
2// Generated on Thu Sep 04 2014 07:41:43 GMT-0400 (EDT)
3
4module.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
11 // frameworks to use
12 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
13 frameworks: ['qunit'],
14
15// plugins: ['karma-qunit', 'karma-coverage', 'phantomjs', 'karma-phantomjs-launcher'],
16
17
18 // list of files / patterns to load in the browser
19 files: [
20// 'http://code.jquery.com/jquery.js',
21 'node_modules/jquery/dist/jquery.min.js',
22 'build/toastr.css',
23 'toastr.js',
24 'node_modules/qunitjs/qunit/qunit.js',
25 'tests/unit/qunit-helper.js',
26 //'tests/unit/x.js'
27 'tests/unit/toastr-tests.js'
28 ],
29
30
31 // list of files to exclude
32 exclude: [
33 ],
34
35
36 // preprocess matching files before serving them to the browser
37 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
38 preprocessors: {
39 'toastr.js': 'coverage'
40 },
41
42
43 // test results reporter to use
44 // possible values: 'dots', 'progress'
45 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
46 reporters: ['progress', 'coverage'],
47
48 coverageReporter: {
49 type: 'lcov',
50 dir: 'tests/coverage'
51 },
52
53 // web server port
54 port: 9876,
55
56
57 // enable / disable colors in the output (reporters and logs)
58 colors: true,
59
60
61 // level of logging
62 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
63 logLevel: config.LOG_INFO,
64
65
66 // enable / disable watching file and executing tests whenever any file changes
67 autoWatch: false,
68
69
70 // start these browsers
71 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
72 browsers: ['PhantomJS'],
73
74
75 // Continuous Integration mode
76 // if true, Karma captures browsers, runs the tests and exits
77 singleRun: true
78 });
79};