mirror of
https://github.com/MAKS-IT-COM/maksit-certs-ui.git
synced 2026-05-16 04:48:12 +02:00
49 lines
1.5 KiB
JSON
49 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft-07/schema",
|
|
"title": "Generate Coverage Badges Script Settings",
|
|
"description": "Configuration for Generate-CoverageBadges.ps1 script",
|
|
"openReport": false,
|
|
"paths": {
|
|
"testProjects": [
|
|
"..\\..\\src\\LetsEncrypt.Tests",
|
|
"..\\..\\src\\MaksIT.Webapi.Tests"
|
|
],
|
|
"badgesDir": "..\\..\\assets\\badges"
|
|
},
|
|
"badges": [
|
|
{
|
|
"name": "coverage-lines.svg",
|
|
"label": "Line Coverage",
|
|
"metric": "line"
|
|
},
|
|
{
|
|
"name": "coverage-branches.svg",
|
|
"label": "Branch Coverage",
|
|
"metric": "branch"
|
|
},
|
|
{
|
|
"name": "coverage-methods.svg",
|
|
"label": "Method Coverage",
|
|
"metric": "method"
|
|
}
|
|
],
|
|
"colorThresholds": {
|
|
"brightgreen": 80,
|
|
"green": 60,
|
|
"yellowgreen": 40,
|
|
"yellow": 20,
|
|
"orange": 10,
|
|
"red": 0
|
|
},
|
|
"_comments": {
|
|
"openReport": "If true, generate and open full HTML coverage report (requires reportgenerator tool).",
|
|
"paths": {
|
|
"testProjects": "Array of relative paths (from this folder) to test project directories or .csproj files. All are run; badge metrics aggregate Cobertura line/branch/method stats.",
|
|
"testProject": "Optional legacy single path if testProjects is omitted.",
|
|
"badgesDir": "Relative path where SVG coverage badges are written."
|
|
},
|
|
"badges": "List of output badges. Each entry maps a metric key (line|branch|method) to filename and label.",
|
|
"colorThresholds": "Coverage percentage thresholds used to pick badge colors."
|
|
}
|
|
}
|