aboutsummaryrefslogtreecommitdiffstats
path: root/karma.conf.js
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-04-14 11:59:32 +0000
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-04-14 11:59:32 +0000
commitd68841d9f75636575cd778838a8ceea5fd5aada3 (patch)
tree778c84203ed9bfa4dc1c8234e4e2cf60da6ebd8c /karma.conf.js
parent42af09588f1f839b9ab36356f02f34c89559bcfa (diff)
Upload ui
Issue-ID: PORTAL-1084 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: Id0c94859a775094e67b0bb9c91ca5e776a08c068
Diffstat (limited to 'karma.conf.js')
-rw-r--r--karma.conf.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/karma.conf.js b/karma.conf.js
new file mode 100644
index 0000000..403490a
--- /dev/null
+++ b/karma.conf.js
@@ -0,0 +1,45 @@
+
+
+// Karma configuration file, see link for more information
+// https://karma-runner.github.io/1.0/config/configuration-file.html
+
+module.exports = function (config) {
+ config.set({
+ basePath: '',
+ frameworks: ['jasmine', '@angular-devkit/build-angular'],
+ plugins: [
+ require('karma-jasmine'),
+ require('karma-jasmine-html-reporter'),
+ require('@angular-devkit/build-angular/plugins/karma'),
+ require('karma-spec-reporter'),
+ require('karma-firefox-launcher'),
+ require('karma-chrome-launcher'),
+ require('karma-sonarqube-unit-reporter'),
+ require('karma-coverage'),
+ ],
+ client: {
+ clearContext: true, // leave Jasmine Spec Runner output visible in browser
+ },
+ coverageReporter: {
+ dir: require('path').join(__dirname, './coverage'),
+ reports: ['html', 'lcovonly', 'text-summary'],
+ fixWebpackSourcePaths: true,
+ },
+ sonarQubeUnitReporter: {
+ sonarQubeVersion: 'LATEST',
+ outputFile: 'reports/ut_report.xml',
+ overrideTestDescription: true,
+ testPaths: ['./src'],
+ testFilePattern: '.spec.ts',
+ useBrowserName: false
+ },
+ reporters: ['progress', 'coverage','spec', 'kjhtml', 'sonarqubeUnit'],
+ port: 4200,
+ colors: true,
+ logLevel: config.LOG_INFO,
+ autoWatch: true,
+ browsers: ['FirefoxHeadless, ChromiumHeadless', 'Firefox'],
+ singleRun: true,
+ restartOnFileChange: true,
+ });
+};