]> git.r.bdr.sh - rbdr/cologne/commitdiff
Fix coverage for sonarcloud
authorRuben Beltran del Rio <redacted>
Mon, 21 Sep 2020 16:05:31 +0000 (18:05 +0200)
committerRuben Beltran del Rio <redacted>
Mon, 21 Sep 2020 16:05:31 +0000 (18:05 +0200)
.gitignore
CHANGELOG.md
package.json
sonar-project.properties

index c2a8529085cd52d9443906056072fdbe1e4fb1d7..5a0025a4aa7c9cf9b55b52822c52556fc7b2e685 100644 (file)
@@ -6,3 +6,4 @@
 coverage
 node_modules
 .scannerwork
+lcov.info
index 29057378a4e221058ff207d298be39fd1e57d9d9..edc51e004e4e90f379ddaf5b753c0ccf21fa1950 100644 (file)
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Changed
 - Fixed links and dates in CHANGELOG.md
 - Now only lib files will be included in the package
+- Fixes coverage report
 
 ## [2.0.1] - 2020-09-21
 ### Added
index 418a47847a759e70c164b5e454f7c91deb4bee0c..856bffaf65db56d21f201395c8112df455ee0b9b 100644 (file)
@@ -21,7 +21,7 @@
     "document": "jsdoc2md lib/**/*.js > doc/README.md; tap -R markdown > doc/COVERAGE.md",
     "lint": "eslint .",
     "test": "tap",
-    "coverage": "nyc report --reporter=text-lcov"
+    "coverage": "nyc report --reporter=text-lcov > lcov.info"
   },
   "main": "./lib/cologne.js",
   "files": [
index 08b778aa594848b047518800d70020735d91ef89..e71edb058a4b564cf3b5c735d25d83bb7f984433 100644 (file)
@@ -8,5 +8,5 @@ sonar.sources=.
 sonar.sourceEncoding=UTF-8
 
 # Coverage path
-sonar.javascript.lcov.reportPaths=coverage/lcov.info
+sonar.javascript.lcov.reportPaths=lcov.info
 sonar.coverage.exclusions='test/**/*'