- Fix: Ensure cypress process will continue on errors (so coverage badge should be created once executing properly)

- npm: Use cross-platform `cp-cli` for copying directories
This commit is contained in:
Brett Zamir
2020-08-03 16:38:47 +08:00
parent 40ff7380ee
commit 4f882a947a
3 changed files with 289 additions and 70 deletions

View File

@@ -57,13 +57,13 @@
"prep": "run-s prep-no-core-rollup rollup",
"prepublishOnly": "run-s license-badges copy prep build-docs",
"cypress:open-no-start": "cypress open",
"cypress:instrument": "rimraf instrumented && cp -r src instrumented && nyc instrument --compact=false src instrumented",
"cypress:instrument": "rimraf instrumented && cp-cli src instrumented && nyc instrument --compact=false src instrumented",
"cypress:open": "run-p start cypress:open-no-start",
"open-tests": "run-s cypress:instrument cypress:open",
"cypress:merge": "mochawesome-merge \"cypress/results/mochaw*.json\" > mochawesome.json && marge mochawesome.json && mbg --file ./mochawesome.json --badge_output badges/tests-badge.svg",
"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 -n cypress:run-no-badge report-summary-mocha-full coverage-badge",
"cypress:run": "run-s -n -c cypress:run-no-badge report-summary-mocha-full coverage-badge",
"mochawesome-cli": "node tools/mochawesome-cli.js",
"mochawesome-cli-dot": "npm run mochawesome-cli -- --dot",
"report-no-mochawesome": "nyc report",
@@ -147,6 +147,7 @@
"copyfiles": "^2.3.0",
"core-js-bundle": "^3.6.5",
"coveradge": "^0.6.0",
"cp-cli": "^2.0.0",
"cross-var": "^1.1.0",
"cypress": "^4.11.0",
"cypress-axe": "^0.8.1",