aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2019-11-29 18:28:54 -0500
committerKevin J Hoerr <kjhoerr@protonmail.com>2019-11-29 18:28:54 -0500
commit1158e558606034b681f4663d62677e798cf5ec23 (patch)
tree35e9ead895b0b0d2008d4c622f5d010a4098fc7c /package.json
parent5964ec16673bd1474d32ffe87a2009b823c36f12 (diff)
downloadao-coverage-1158e558606034b681f4663d62677e798cf5ec23.tar.gz
ao-coverage-1158e558606034b681f4663d62677e798cf5ec23.tar.bz2
ao-coverage-1158e558606034b681f4663d62677e798cf5ec23.zip
Implement report parsing for Tarpaulin
The generated Tarpaulin HTML report does not have stats to parse via the DOM - the data is injected via a script tag, which only has line-by-line coverage, though it includes statistics for each file. The total coverage is counted by summing the covered/coverable stats reported for each file. Also, the bad version for express is fixed, and messages are included for errors that occur for the POST endpoint.
Diffstat (limited to 'package.json')
-rw-r--r--package.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index c836376..4d539de 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"type": "git",
"url": "https://git.submelon.dev/kjhoerr/ao-coverage.git"
},
- "main": "dist/index.js",
+ "main": "build/index.js",
"scripts": {
"start": "tsc && node ./build/index.js",
"tsc": "tsc"
@@ -17,7 +17,7 @@
"@types/express": "^4.17.2",
"badgen": "3.0.1",
"dotenv": "8.2.0",
- "express": "4.17.2",
+ "express": "4.17.1",
"typescript": "^3.7.2"
},
"devDependencies": {