forked from shoshi/angular-breadcrumbs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
29 lines (25 loc) · 759 Bytes
/
karma.conf.js
File metadata and controls
29 lines (25 loc) · 759 Bytes
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
module.exports = function(config) {
var testFiles = [
'public/js/requirejs-config.js',
'test/unit/test-main.js',
{ pattern: 'public/lib/**/*.js', included: false },
{ pattern: 'dist/ng-breadcrumbs.min.js', included: false },
{ pattern: 'public/js/**/*.js', included: false }
];
var options = JSON.parse(process.argv[2]);
if (options.tests) {
testFiles.push({ pattern: 'test/unit/' + options.test, included: false });
} else {
testFiles.push({ pattern: 'test/unit/**/*.js', included: false });
}
config.set({
basePath: '',
frameworks: ['requirejs', 'mocha', 'chai'],
files: testFiles,
autoWatch: false,
captureTimeout: 60000,
preprocessors: {
'src/**/*.js': 'coverage'
}
});
};