@eui/tools 6.21.111 → 6.21.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/karma/karma.conf.pkg-ci.js +97 -0
- package/package.json +1 -1
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.112
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.21.112 (2025-09-02)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* add karma-config for CI - sdlc compat - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([21fb5fa0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/21fb5fa00a9086f31a0995e1725a0566362769c5))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.21.111 (2025-08-27)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Karma configuration file, see link for more information
|
|
4
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
5
|
+
|
|
6
|
+
function get(config, pkg, inputOpt) {
|
|
7
|
+
|
|
8
|
+
const DEFAULT_OPTS = {
|
|
9
|
+
files: [],
|
|
10
|
+
basePath: '../../../',
|
|
11
|
+
packageRootPath: './',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const opt = Object.assign(DEFAULT_OPTS, inputOpt);
|
|
15
|
+
|
|
16
|
+
// transpiled app JS and map files
|
|
17
|
+
const libPath = opt.packageRootPath;
|
|
18
|
+
|
|
19
|
+
const defaultConfig = {
|
|
20
|
+
basePath: libPath,
|
|
21
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
22
|
+
plugins: [
|
|
23
|
+
require('karma-jasmine'),
|
|
24
|
+
require('karma-chrome-launcher'),
|
|
25
|
+
require('karma-jasmine-html-reporter'),
|
|
26
|
+
require('karma-coverage-istanbul-reporter'),
|
|
27
|
+
require('@angular-devkit/build-angular/plugins/karma'),
|
|
28
|
+
require('karma-coverage'),
|
|
29
|
+
require('karma-remap-coverage')
|
|
30
|
+
],
|
|
31
|
+
client: {
|
|
32
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
33
|
+
},
|
|
34
|
+
coverageIstanbulReporter: {
|
|
35
|
+
// dir: require('path').join(__dirname, './coverage'),
|
|
36
|
+
dir: require('path').join(opt.packageRootPath,'test', 'reports', 'coverage'),
|
|
37
|
+
reports: ['html', 'lcovonly'],
|
|
38
|
+
fixWebpackSourcePaths: true
|
|
39
|
+
},
|
|
40
|
+
exclude: [],
|
|
41
|
+
preprocessors: {},
|
|
42
|
+
reporters: ['progress', 'coverage', 'remap-coverage'],
|
|
43
|
+
|
|
44
|
+
htmlReporter: {
|
|
45
|
+
outputDir: opt.packageRootPath + '/test/reports', // where to put the reports
|
|
46
|
+
templatePath: null, // set if you moved jasmine_template.html
|
|
47
|
+
focusOnFailures: true, // reports show failures on start
|
|
48
|
+
namedFiles: true, // name files instead of creating sub-directories
|
|
49
|
+
pageTitle: null, // page title for reports; browser info by default
|
|
50
|
+
urlFriendlyName: false, // simply replaces spaces with _ for files/dirs
|
|
51
|
+
reportName: 'test-report-summary', // report summary filename; browser info by default
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
// experimental
|
|
55
|
+
preserveDescribeNesting: false, // folded suites stay folded
|
|
56
|
+
foldAll: false, // reports start folded (only with preserveDescribeNesting)
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
coverageReporter: {
|
|
60
|
+
type: 'in-memory',
|
|
61
|
+
includeAllSources: true,
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
remapCoverageReporter: {
|
|
65
|
+
'text-summary': null,
|
|
66
|
+
html: opt.packageRootPath + '/test/reports' + '/html',
|
|
67
|
+
lcovonly: opt.packageRootPath + '/test/reports' + '/coverage-lcov/lcov.info',
|
|
68
|
+
json: opt.packageRootPath + '/test/reports' + '/coverage/coverage-final.json',
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
customLaunchers: {
|
|
72
|
+
MyHeadlessChrome: {
|
|
73
|
+
base: 'ChromeHeadless',
|
|
74
|
+
flags: [
|
|
75
|
+
'--no-sandbox',
|
|
76
|
+
'--remote-debugging-port=9223',
|
|
77
|
+
'--disable-translate',
|
|
78
|
+
'--disable-extensions'
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
port: 9876,
|
|
83
|
+
colors: true,
|
|
84
|
+
logLevel: config.LOG_INFO,
|
|
85
|
+
autoWatch: true,
|
|
86
|
+
browsers: ['MyHeadlessChrome'],
|
|
87
|
+
singleRun: true,
|
|
88
|
+
browserDisconnectTolerance: 2,
|
|
89
|
+
browserNoActivityTimeout: 50000
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
defaultConfig.preprocessors[opt.packageRootPath + '/src/lib/**/!(*.spec).js'] = 'coverage';
|
|
93
|
+
|
|
94
|
+
return defaultConfig;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
module.exports.get = get;
|