From 1158e558606034b681f4663d62677e798cf5ec23 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Fri, 29 Nov 2019 18:28:54 -0500 Subject: 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. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package.json') 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": { -- cgit