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
|
/* jshint node:true */
define(['intern'], function (intern) {
var useBrowserStack = intern.args.useBrowserStack,
tunnel = useBrowserStack ? 'BrowserStackTunnel' : 'NullTunnel';
return {
excludeInstrumentation: /(((test|third-party|node_modules)\/)|(templates.js$))/,
defaultTimeout: 60 * 1000,
reporters: [
{ id: 'Runner' },
{ id: 'Lcov' },
{ id: 'LcovHtml', directory: 'target/web-tests' }
],
suites: [
'test/unit/application.spec',
'test/unit/issue.spec',
'test/unit/overview/card.spec',
'test/unit/code-with-issue-locations-helper.spec',
'test/unit/nav/component/component-nav-breadcrumbs.spec',
'test/unit/recent-history.spec',
'test/unit/csv.spec'
],
// FIXME enable functional tests
// TODO fix FP
functionalSuites: [
//'test/medium/users.spec',
//'test/medium/issues.spec',
//'test/medium/update-center.spec',
//'test/medium/computation.spec',
//'test/medium/coding-rules.spec',
//'test/medium/custom-measures.spec',
//'test/medium/quality-profiles.spec',
//'test/medium/source-viewer.spec',
//'test/medium/global-permissions.spec',
//'test/medium/project-permissions.spec'
],
tunnel: tunnel,
environments: [
{ browserName: 'firefox' }
],
loaderOptions: {
paths: {
'react': '../../build/js/libs/third-party/react-with-addons',
'underscore': '../../build/js/libs/shim/underscore-shim',
'jquery': '../../build/js/libs/shim/jquery-shim',
'backbone': '../../build/js/libs/third-party/backbone',
'backbone.marionette': '../../build/js/libs/third-party/backbone.marionette'
},
map: {
'*': {
'components/shared/qualifier-icon': '../../build/js/components/shared/qualifier-icon'
}
}
}
};
});
|