


























@@ -21,6 +21,7 @@ function testMaturityTaxonomy(params?: {
2121coverageIds?: readonly string[];
2222featureCoverageIds?: readonly (readonly string[])[];
2323includeAllCategories?: boolean;
24+includeArchivedSurface?: boolean;
2425profileCategoryIds?: readonly string[];
2526}): QaMaturityTaxonomy {
2627const categoryId = params?.categoryId ?? TEST_EXECUTABLE_CATEGORY_ID;
@@ -74,6 +75,27 @@ function testMaturityTaxonomy(params?: {
7475},
7576],
7677},
78+ ...(params?.includeArchivedSurface
79+ ? [
80+{
81+id: "archived-surface",
82+name: "Archived surface",
83+family: "test",
84+level: "experimental",
85+archived: true,
86+categories: [
87+{
88+id: "legacy-category",
89+name: "Legacy category",
90+category_note: "legacy-category.md",
91+docs: [],
92+search_anchors: [],
93+features: [{ name: "legacy.feature", coverageIds: ["legacy.feature"] }],
94+},
95+],
96+},
97+]
98+ : []),
7799],
78100};
79101}
@@ -445,6 +467,7 @@ describe("qa coverage report", () => {
445467const report = buildQaScorecardTaxonomyReport({
446468taxonomy: testMaturityTaxonomy({
447469includeAllCategories: true,
470+includeArchivedSurface: true,
448471}),
449472repoRoot: process.cwd(),
450473scenarios: [],
@@ -454,6 +477,10 @@ describe("qa coverage report", () => {
454477TEST_EXECUTABLE_CATEGORY_ID,
455478]);
456479expect(report.requiredCategoryCount).toBe(1);
480+expect(report.categoryCount).toBe(1);
481+expect(report.profiles.find((profile) => profile.id === "release")?.categoryIds).not.toContain(
482+"archived-surface.legacy-category",
483+);
457484});
458485459486it("reports profile categories missing primary coverage evidence", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。