mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Enabled test coverage report for e2e tests
closes https://github.com/TryGhost/Toolbox/issues/475 - We did not have visibility and history into test coverage statistics in non-unit test suites. This data is useful identifying problematic areas and can be used to keep the code quality under control - Enabled test coverage for e2e tests, including integration and regression tests - Decreased the "branches" coverage requirement for the tests to pass (did not want to introduce an additional c8 configuration file just yet)
This commit is contained in:
parent
174525bc52
commit
b7951b5445
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
"cobertura"
|
||||
],
|
||||
"statements": 57,
|
||||
"branches": 85,
|
||||
"branches": 80,
|
||||
"functions": 51,
|
||||
"lines": 57,
|
||||
"include": [
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
"test:e2e": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/e2e-api' './test/e2e-frontend' './test/e2e-server' './test/e2e-webhooks' --timeout=15000",
|
||||
"test:regression": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000",
|
||||
"test:browser": "playwright test --browser=all test/e2e-browser",
|
||||
"test:ci": "yarn test:e2e -b && yarn test:integration -b && yarn test:regression -b",
|
||||
"test:ci": "c8 yarn test:e2e -b && yarn test:integration -b && yarn test:regression -b",
|
||||
"test:unit:slow": "yarn test:unit --reporter=mocha-slow-test-reporter",
|
||||
"test:int:slow": "yarn test:integration --reporter=mocha-slow-test-reporter",
|
||||
"test:e2e:slow": "yarn test:e2e --reporter=mocha-slow-test-reporter",
|
||||
|
|
Loading…
Reference in a new issue