fix(8249): test groups come smallest first, and a big one is read as a feature area
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m14s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Successful in 35s

A group is the set of tests reaching the same code from different files. A
test that drives a feature through its one entry point reaches exactly that
entry point whatever it checks, so the largest groups are a feature tested
from many files, not copies. Listing them first buried the two- and
three-test groups where one-for-one duplicates are. The readout, the tool and
the panel now list smallest first; each group says copies or area and how
many files it spans, and the panel tells an area to fold its scattered cases
into one file. Plugin 2026.12.01.0748.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 02:49:06 -05:00
co-authored by Claude Opus 5.5
parent 70ca2e8a11
commit 7c7a1a7ab9
6 changed files with 62 additions and 9 deletions
+9 -1
View File
@@ -21,6 +21,8 @@ interface GroupTest extends ShapeRef {
}
interface Group {
key: string;
kind: "copies" | "area";
files: number;
guards: ShapeRef[];
tests: GroupTest[];
}
@@ -145,6 +147,10 @@ watch(() => props.projectId, load);
</p>
<ul v-else class="tg-list">
<li v-for="g in groups" :key="g.key" class="tg-group">
<p v-if="g.kind === 'area'" class="tg-kind">
One feature tested from {{ g.files }} files: fold the scattered
cases into its own test file, and remove only what another test covers.
</p>
<div class="tg-guards">
<span class="tg-label">Guard</span>
<code v-for="s in g.guards" :key="s.id" :title="s.path">{{ s.symbol }}</code>
@@ -199,7 +205,8 @@ watch(() => props.projectId, load);
</li>
</ul>
<p v-if="count > groups.length" class="tg-note">
Showing {{ groups.length }} of {{ count }}, largest first.
Showing {{ groups.length }} of {{ count }}, smallest first: the
smallest groups are the likeliest copies.
</p>
</div>
</div>
@@ -229,6 +236,7 @@ watch(() => props.projectId, load);
}
.tg-guards, .tg-test { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fs-space-2); }
.tg-label { color: var(--fs-text-tertiary); }
.tg-kind { margin: 0; color: var(--fs-text-secondary); }
code { font-family: var(--fs-font-mono); color: var(--fs-text-primary); }
.tg-signal {
padding: 0 var(--fs-space-2);