From: Ruben Beltran del Rio Date: Mon, 21 Sep 2020 16:05:31 +0000 (+0200) Subject: Fix coverage for sonarcloud X-Git-Tag: v2.0.2~1 X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/commitdiff_plain/e23427db19436b03cab0119d3e9192b87ca628b8?ds=inline Fix coverage for sonarcloud --- diff --git a/.gitignore b/.gitignore index c2a8529..5a0025a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ coverage node_modules .scannerwork +lcov.info diff --git a/CHANGELOG.md b/CHANGELOG.md index 2905737..edc51e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 418a478..856bffa 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/sonar-project.properties b/sonar-project.properties index 08b778a..e71edb0 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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/**/*'