aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--CHANGELOG.md1
-rw-r--r--package.json2
-rw-r--r--sonar-project.properties2
4 files changed, 4 insertions, 2 deletions
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/**/*'