Skip to content

Commit 218bdf2

Browse files
committed
Adding test debugger.
1 parent f711a78 commit 218bdf2

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

test/debug.js

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/**
2+
* Karma module file used for debugging UI Router within the test suite.
3+
* To start, open a terminal from within the UI Router project directory
4+
* and run `karma start test/debug.js`.
5+
*/
6+
module.exports = function(config) {
7+
config.set({
8+
// base path, that will be used to resolve files and exclude
9+
basePath: '.',
10+
11+
// list of files / patterns to load in the browser
12+
files: [
13+
'../lib/angular-1.1.4.js',
14+
'./lib/angular-mocks-1.1.4.js',
15+
'./testUtils.js',
16+
17+
'../src/common.js',
18+
'../src/resolve.js',
19+
'../src/templateFactory.js',
20+
'../src/urlMatcherFactory.js',
21+
'../src/urlRouter.js',
22+
'../src/view.js',
23+
'../src/state.js',
24+
'../src/viewDirective.js',
25+
'../src/stateDirectives.js',
26+
'../src/compat.js',
27+
28+
'../test/*Spec.js',
29+
// 'test/compat/matchers.js',
30+
// 'test/compat/*Spec.js',
31+
],
32+
33+
frameworks: ["jasmine"],
34+
35+
// list of files to exclude
36+
exclude: [],
37+
38+
// use dots reporter, as travis terminal does not support escaping sequences
39+
// possible values: 'dots' || 'progress'
40+
reporters: ['dots'],
41+
42+
// these are default values, just to show available options
43+
44+
// web server port
45+
port: 8080,
46+
47+
// enable / disable colors in the output (reporters and logs)
48+
colors: true,
49+
50+
// level of logging
51+
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
52+
//logLevel: karma.LOG_DEBUG,
53+
54+
// enable / disable watching file and executing tests whenever any file changes
55+
autoWatch: false,
56+
57+
// polling interval in ms (ignored on OS that support inotify)
58+
autoWatchInterval: 0,
59+
60+
// Start these browsers, currently available:
61+
// - Chrome
62+
// - ChromeCanary
63+
// - Firefox
64+
// - Opera
65+
// - Safari
66+
// - PhantomJS
67+
browsers: [ 'Chrome' ]
68+
});
69+
};

0 commit comments

Comments
 (0)