@aisdlc/cli 4.5.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -138,9 +138,13 @@ Running `aisdlc init` (or `npx @aisdlc/cli init`) delivers a turnkey governance
|
|
|
138
138
|
|
|
139
139
|
### Automated Code Coverage Ingestion (.NET / Polyglot)
|
|
140
140
|
|
|
141
|
-
`aisdlc
|
|
141
|
+
`aisdlc verify quality`, `aisdlc verify all`, `aisdlc report quality`, and `aisdlc report dashboard` passively ingest test coverage from standard locations:
|
|
142
142
|
- `coverage/lcov.info` or `reports/lcov.info` (LCOV format)
|
|
143
143
|
- `coverage/coverage-summary.json` or `reports/coverage-summary.json` (Istanbul/JSON summary format)
|
|
144
|
+
- `coverage.cobertura.xml` / `coverage.xml` / `TestResults/*/coverage.cobertura.xml` (Cobertura XML, e.g. .NET Coverlet & Pytest)
|
|
145
|
+
- `jacoco.xml`, `coverage.out` (Go), `llvm-cov.json` (Rust/C++)
|
|
146
|
+
|
|
147
|
+
> **Strict Enforcement:** In `STRICT` mode (`quality-policy.yaml`), `aisdlc verify quality` (enabled by default), `aisdlc verify all`, and `aisdlc report quality` fail if no coverage report is found on disk. In `PERMISSIVE` mode (or during pre-flight `aisdlc check`), missing coverage is non-blocking.
|
|
144
148
|
|
|
145
149
|
#### Setting up .NET / C# projects:
|
|
146
150
|
1. Ensure `coverlet.collector` is installed in your test project (`*.Tests.csproj`):
|
package/dist/index.js
CHANGED
|
@@ -212,7 +212,8 @@ function runVerifyQuality(options = {}) {
|
|
|
212
212
|
thresholds: buildQualityThresholds(options),
|
|
213
213
|
updateBaseline: options.updateBaseline,
|
|
214
214
|
baseline: options.baseline,
|
|
215
|
-
ratchet: options.ratchet
|
|
215
|
+
ratchet: options.ratchet,
|
|
216
|
+
requireCoverageReport: options.requireCoverageReport
|
|
216
217
|
});
|
|
217
218
|
if (useJson) {
|
|
218
219
|
emitQualityJson(result);
|
|
@@ -1357,7 +1358,7 @@ function auditPdacGate(rootDir, wasAutoFixed) {
|
|
|
1357
1358
|
};
|
|
1358
1359
|
}
|
|
1359
1360
|
function auditQualityGate(rootDir) {
|
|
1360
|
-
const res = verifyQualityGate2({ rootDir });
|
|
1361
|
+
const res = verifyQualityGate2({ rootDir, requireCoverageReport: false });
|
|
1361
1362
|
if (res.success) {
|
|
1362
1363
|
return {
|
|
1363
1364
|
name: "Quality Gate (Complexity & Maintainability)",
|