]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Use karma-spec-reporter and suppress passed (#8564)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Thu, 4 Mar 2021 13:24:52 +0000 (15:24 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Mar 2021 13:24:52 +0000 (08:24 -0500)
karma.conf.js
package-lock.json
package.json

index c8f678ff6106f9b1f5e9c54efeb7a9abc9aef0c6..a9eba037f2c8840cba7bf1f500e6eaab68c2a3ad 100644 (file)
@@ -30,7 +30,7 @@ module.exports = function(karma) {
 
   karma.set({
     frameworks: ['jasmine'],
-    reporters: ['progress', 'kjhtml'],
+    reporters: ['spec', 'kjhtml'],
     browsers: (args.browsers || 'chrome,firefox').split(','),
     logLevel: karma.LOG_INFO,
 
@@ -40,6 +40,16 @@ module.exports = function(karma) {
       }
     },
 
+    specReporter: {
+      // maxLogLines: 5,             // limit number of lines logged per test
+      suppressErrorSummary: true, // do not print error summary
+      suppressFailed: false,      // do not print information about failed tests
+      suppressPassed: true,      // do not print information about passed tests
+      suppressSkipped: false,      // do not print information about skipped tests
+      showSpecTiming: false,      // print the time elapsed for each spec
+      failFast: false              // test would finish with error when a first fail occurs.
+    },
+
     // Explicitly disable hardware acceleration to make image
     // diff more stable when ran on Travis and dev machine.
     // https://github.com/chartjs/Chart.js/pull/5629
index 3dd103b5a584147501f6630c5b53633255562b98..870239a06b88f0a4867289b10051882cc1ff2407 100644 (file)
         "applescript": "^1.0.0"
       }
     },
+    "karma-spec-reporter": {
+      "version": "0.0.32",
+      "resolved": "https://registry.npmjs.org/karma-spec-reporter/-/karma-spec-reporter-0.0.32.tgz",
+      "integrity": "sha1-LpxyB+pyZ3EmAln4K+y1QyCeRAo=",
+      "dev": true,
+      "requires": {
+        "colors": "^1.1.2"
+      }
+    },
     "lcov-parse": {
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-1.0.0.tgz",
index 2bf3000194208f76a361e7aa08a6288f5773a044..cacb0078a6d93d34518585d63058bd74bc103f0f 100644 (file)
@@ -76,6 +76,7 @@
     "karma-jasmine-html-reporter": "^1.5.4",
     "karma-rollup-preprocessor": "^7.0.5",
     "karma-safari-private-launcher": "^1.0.0",
+    "karma-spec-reporter": "0.0.32",
     "markdownlint-cli2": "0.0.14",
     "moment": "^2.29.1",
     "pixelmatch": "^5.2.1",