From 94f0588f0ebf9363374e098af2133ab9295b536a Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Fri, 11 Dec 2020 16:21:00 -0330 Subject: [PATCH] Add HTML coverage report to MetaMask bot comment (#10061) The HTML code coverage report generated by `nyc` is now included in the MetaMask bot comment. It has been saved as an artifact on CircleCI. --- .circleci/config.yml | 3 +++ development/metamaskbot-build-announce.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 37d10381a..e54378e98 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -395,6 +395,9 @@ jobs: - store_artifacts: path: builds destination: builds + - store_artifacts: + path: coverage + destination: coverage - store_artifacts: path: test-artifacts destination: test-artifacts diff --git a/development/metamaskbot-build-announce.js b/development/metamaskbot-build-announce.js index fd514fa8d..1bea36d73 100755 --- a/development/metamaskbot-build-announce.js +++ b/development/metamaskbot-build-announce.js @@ -55,6 +55,9 @@ async function start() { }) .join(', ') + const coverageUrl = `${BUILD_LINK_BASE}/coverage/index.html` + const coverageLink = `Report` + // links to bundle browser builds const depVizUrl = `${BUILD_LINK_BASE}/build-artifacts/deps-viz/background/index.html` const depVizLink = `background` @@ -65,6 +68,7 @@ async function start() { const contentRows = [ `builds: ${buildLinks}`, `bundle viz: ${bundleLinks}`, + `code coverage: ${coverageLink}`, `dep viz: ${depVizLink}`, `all artifacts`, ]