-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
43 lines (32 loc) · 1.16 KB
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Karma configuration
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: './',
// testing frameworks to use
frameworks: ['mocha', 'chai', 'sinon'],
// list of files / patterns to load in the browser. order matters!
files: [
// angular source
'client/lib/angular/angular.js',
'client/lib/angular-route/angular-route.js',
'client/lib/angular-mocks/angular-mocks.js',
// our app code
'client/app/**/*.js',
// our spec files - in order of the README
'specs/client/authControllerSpec.js',
'specs/client/servicesSpec.js',
'specs/client/linksControllerSpec.js',
'specs/client/shortenControllerSpec.js',
'specs/client/routingSpec.js'
],
// test results reporter to use
reporters: ['nyan', 'unicorn'],
// start these browsers. PhantomJS will load up in the background
browsers: ['PhantomJS'],
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
// if true, Karma exits after running the tests.
singleRun: true
});
};