CodeCommitsIssuesPull requestsActionsInsightsSecurity
02ed4a31f039d9bf947ea098196057de12f25498

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

karma.conf.js

76lines · modecode

10 years ago
1// Karma configuration
2// Generated on Tue Nov 03 2015 13:28:20 GMT-0800 (PST)
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: ['mocha', 'browserify'],
14
15
16 // list of files / patterns to load in the browser
17 files: [
18 'test.js'
19 ],
20
21
22 // list of files to exclude
23 exclude: [
24 ],
25
26
27 // preprocess matching files before serving them to the browser
28 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
29 preprocessors: {
30 'test.js': ['browserify']
31 },
32
33
34 // test results reporter to use
35 // possible values: 'dots', 'progress'
36 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
37 reporters: ['progress', 'mocha'],
38
39
40 // web server port
41 port: 9876,
42
43
44 // enable / disable colors in the output (reporters and logs)
45 colors: true,
46
47
48 // level of logging
49 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
50 logLevel: config.LOG_INFO,
51
52
53 // enable / disable watching file and executing tests whenever any file changes
54 autoWatch: true,
55
56
57 // start these browsers
58 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
59 browsers: [],
60
61
62 // Continuous Integration mode
63 // if true, Karma captures browsers, runs the tests and exits
64 singleRun: false,
65
66 // Concurrency level
67 // how many browser should be started simultanous
68 concurrency: Infinity,
69
70 // Browserify configuration
71 browserify: {
72 debug: true,
73 transform: []
74 }
75 })
76}