forked from janodvarko/harviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintern.js
More file actions
92 lines (80 loc) · 2.65 KB
/
Copy pathintern.js
File metadata and controls
92 lines (80 loc) · 2.65 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/**
* Base Intern config for HAR Viewer.
*
* Look at intern-selenium-standalone.js and intern-selenium-grid.js for
* config for functional testing.
*/
define([
'intern/dojo/has'
], function(has) {
var config = {};
config.defaultTimeout = 60 * 1000;
config.reporters = [
'Pretty',
'Lcov',
'LcovHtml',
{ 'id': 'JUnit', 'filename': 'report.xml' }
];
// Configuration options for the module loader; any AMD configuration options supported by the Dojo loader can be
// used here
config.loaderOptions = {
paths: {
'text': 'webapp/scripts/text',
'i18n': 'webapp/scripts/i18n',
'jquery': 'webapp/scripts/jquery'
},
packages: [{
name: 'core', location: 'webapp/scripts/core'
},{
name: 'preview', location: 'webapp/scripts/preview'
},{
name: 'nls', location: 'webapp/scripts/nls'
},{
name: 'tabs', location: 'webapp/scripts/tabs'
}]
};
// Non-functional test suite(s) to run in each browser
config.suites = [];
if (has('host-browser')) {
config.suites.push('tests/unit/unit');
}
config.suites = config.suites.concat([
'tests/unit/core/cookies',
'tests/unit/core/lib',
'tests/unit/core/mime',
'tests/unit/core/object',
'tests/unit/core/StatsService',
'tests/unit/core/url',
'tests/unit/preview/harModelLoader'
]);
// A regular expression matching URLs to files that should not be included
// in code coverage analysis.
// Some of the patterns listed here can also be used in a reverse proxy to
// prevent any files that should not be instrumented from even reaching the
// Intern proxy.
// WARNING - PhantomJS does not seem to like [Istanbul code coverage /
// large JS files] combination. Thus you may find the PhantomJS tests fail
// when testing the built "webapp-build" files with instrumentation turned
// on. In this case you can set excludeInstrumentation to true, to
// completely disable instrumentation.
// See https://theintern.github.io/intern/#option-excludeInstrumentation
config.excludeInstrumentation = new RegExp([
// Exclude Intern's own files
'^intern/',
// Exclude test files
'^tests/',
// Exclude any 3rd party components installed via package manager
'^bower_components/',
'^node_modules/',
// Exclude any 3rd party components in HAR Viewer's own source
'scripts/jquery.js$',
'scripts/require.js$',
'scripts/text.js$',
'scripts/i18n.js$',
// Exclude any 3rd party components in HAR Viewer's own source
'/downloadify/',
'/json-query/',
'/syntax-highlighter/'
].join('|'));
return config;
});