3e2142e9f4878989d927d965adaeb69fc22eb887
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / dlux / dlux-web / karma / karma-unit.tpl.js
1 module.exports = function ( karma ) {
2   karma.set({
3     /** 
4      * From where to look for files, starting with the location of this file.
5      */
6     basePath: '../',
7
8     /**
9      * This is the list of file patterns to load into the browser during testing.
10      */
11     files: [
12      'src/test-main.js',
13      {pattern: 'vendor/**/*.js', included: false},
14      {pattern: 'src/**/*.js', included: false},
15      {pattern: 'src/**/*.js', included: false}
16     ],
17     exclude: [
18       'src/assets/**/*.js'
19     ],
20     frameworks: [ 'jasmine', 'requirejs' ],
21     plugins: [ 'karma-jasmine', 'karma-coverage', 'karma-requirejs', 'karma-firefox-launcher', 'karma-chrome-launcher', 'karma-phantomjs-launcher', 'karma-coffee-preprocessor' ],
22
23     preprocessors: {
24       '**/*.coffee': 'coffee',
25     },
26
27     /**
28      * How to report, by default.
29      */
30     reporters: 'dots',
31
32     /**
33      * On which port should the browser connect, on which port is the test runner
34      * operating, and what is the URL path for the browser to use.
35      */
36     port: 9018,
37     runnerPort: 9101,
38     urlRoot: '/',
39
40     /** 
41      * Disable file watching by default.
42      */
43     autoWatch: false,
44     singleRun: false,
45     /**
46      * The list of browsers to launch to test on. This includes only "Firefox" by
47      * default, but other browser names include:
48      * Chrome, ChromeCanary, Firefox, Opera, Safari, PhantomJS
49      *
50      * Note that you can also use the executable name of the browser, like "chromium"
51      * or "firefox", but that these vary based on your operating system.
52      *
53      * You may also leave this blank and manually navigate your browser to
54      * http://localhost:9018/ when you're running tests. The window/tab can be left
55      * open and the tests will automatically occur there during the build. This has
56      * the aesthetic advantage of not launching a browser every time you save.
57      */
58     browsers: [
59       'Chrome'
60     ]
61   });
62 };
63