Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 8e2e7bd

Browse files
committed
[FT] Update karma test
1 parent 086e050 commit 8e2e7bd

3 files changed

Lines changed: 60 additions & 24 deletions

File tree

gruntFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function (grunt) {
1010
grunt.registerTask('build-doc', ['uglify', 'copy']);
1111

1212
var testConfig = function(configFile, customOptions) {
13-
var options = { configFile: configFile, keepalive: false };
13+
var options = { configFile: configFile, singleRun: true };
1414
var travisOptions = process.env.TRAVIS && { browsers: ['Firefox'], reporters: ['dots'] };
1515
return grunt.util._.extend(options, customOptions, travisOptions);
1616
};

test/karma.conf.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// Karma configuration
2+
// Generated on Thu May 16 2013 16:32:29 GMT+0200 (CEST)
3+
4+
5+
// base path, that will be used to resolve files and exclude
6+
basePath = '..';
7+
8+
9+
// list of files / patterns to load in the browser
10+
files = [
11+
JASMINE,
12+
JASMINE_ADAPTER,
13+
'components/angular/angular.js',
14+
'components/angular-mocks/angular-mocks.js',
15+
'components/angular-ui-utils/modules/event/event.js',
16+
'src/*.js',
17+
'test/googlemaps.js',
18+
'test/*Spec.js'
19+
];
20+
21+
22+
// list of files to exclude
23+
exclude = [
24+
25+
];
26+
27+
28+
// test results reporter to use
29+
// possible values: 'dots', 'progress', 'junit'
30+
reporters = ['dots'];
31+
32+
33+
// enable / disable colors in the output (reporters and logs)
34+
colors = true;
35+
36+
37+
// level of logging
38+
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
39+
logLevel = LOG_INFO;
40+
41+
42+
// enable / disable watching file and executing tests whenever any file changes
43+
autoWatch = false;
44+
45+
46+
// Start these browsers, currently available:
47+
// - Chrome
48+
// - ChromeCanary
49+
// - Firefox
50+
// - Opera
51+
// - Safari (only Mac)
52+
// - PhantomJS
53+
// - IE (only Windows)
54+
browsers = ['Chrome', 'Firefox', 'PhantomJS'];
55+
56+
57+
// Continuous Integration mode
58+
// if true, it capture browsers, run tests and exit
59+
singleRun = false;

test/test.conf.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)