From 2810d8e69986cebda3ffb7b8fd50c48c65f85b87 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 6 Jan 2020 14:45:53 +0800 Subject: [PATCH] - Testing: Remove extra `spec` - Testing (coverag)e: Remove `nyc_output` to avoid instrumentation building on past results --- mocha-multi-reporters.json | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mocha-multi-reporters.json b/mocha-multi-reporters.json index 560081f3..787d32e0 100644 --- a/mocha-multi-reporters.json +++ b/mocha-multi-reporters.json @@ -5,5 +5,5 @@ "html": false, "json": true }, - "reporterEnabled": "spec, mochawesome" + "reporterEnabled": "mochawesome" } diff --git a/package.json b/package.json index 6809d1ef..b0425d9a 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "start-embedded": "echo \"Open file to http://localhost:8000/editor/embedapi.html\" && run-p start start-allow-origin", "start": "echo \"Open file, e.g., to http://localhost:8000/editor/svg-editor-es.html\" && static -p 8000", "cypress:open": "cypress open", - "cypress:merge": "mochawesome-merge \"cypress/results/*.json\">mochawesome.json && marge mochawesome.json && node build/testing-badge.js", - "cypress:run-only": "rimraf \"cypress/results/*\" && cypress run", + "cypress:merge": "mochawesome-merge \"cypress/results/mochaw*.json\" > mochawesome.json && marge mochawesome.json && node build/testing-badge.js", + "cypress:run-only": "rimraf \"cypress/results/mochaw*.json\" && rimraf \".nyc_output/*\" && cypress run", "cypress:run-no-badge": "run-s -c cypress:run-only cypress:merge", "cypress:run": "run-s -c cypress:run-no-badge coverage-badge", "open-report-no-start": "open-cli http://localhost:8000/coverage/",