mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
3bd8e01495
- Updating our config to have `--check-coverage` enforces that the coverage meets a certain level. - The default is 95 I believe, but our coverage is lower. - I've set the levels to our current levels, so any drop below these numbers will cause the build to fail. - I've also set the reporters to be text, html and cobertura so we always have a mini report, the full HTML files to navigate and cobertura for CI - Cleaned up CI so we don't use the cov:unit command as we're now using codecov - This also means we can remove the cov:unit command which was weird to use because it uses the last test run, which can be confusing
35 lines
831 B
JSON
35 lines
831 B
JSON
{
|
|
"all": true,
|
|
"check-coverage": true,
|
|
"reporter": [
|
|
"html",
|
|
"text-summary",
|
|
"cobertura"
|
|
],
|
|
"statements": 56,
|
|
"branches": 85,
|
|
"functions": 51,
|
|
"lines": 56,
|
|
"include": [
|
|
"core/{*.js,frontend,server,shared}"
|
|
],
|
|
"exclude": [
|
|
"core/frontend/src/**",
|
|
"core/frontend/public/**",
|
|
"core/server/data/migrations/**",
|
|
"!core/server/data/migrations/utils.js",
|
|
"core/frontend/web/**",
|
|
"!core/frontend/web/middleware/**",
|
|
"core/server/web/api/**",
|
|
"!core/server/web/api/middleware/**",
|
|
"core/server/web/parent/**",
|
|
"!core/server/web/parent/middleware/**",
|
|
"core/server/web/shared/**",
|
|
"!core/server/web/shared/middleware/**",
|
|
"core/server/api/v2/**",
|
|
"core/server/api/v3/**",
|
|
"core/server/api/canary/**",
|
|
"!core/server/api/canary/utils"
|
|
]
|
|
}
|