The record is the text of the repair. The Results table is the last run of the row.
DTTestCoverageTest>>testDTTestCoverageResultHas2Nodes, "Got 2 instead
of 3").DTTestCoverageResult>>buildTreeForUI of the package makes 2
nodes, and the name of the test says 2. The assertion says 3. The first
commit of the repository has the same code and the same assertion.fixes/pakarati-pharo-gsoc2025.st corrects the assertion.Load the package into a Pharo 14 image (build 791) with the load expression of the test run, file in the fixes file of the row if there is one, and run the test classes of the package.
"row 97" Metacello new baseline: 'DrTest20'; repository: 'github://Pakarati/pharo-gsoc2025:main'; onConflict: [:e | e useIncoming]; load.
Last result of the package run (stock Cog and iospharo on the same image).
| Row | Label | Load | Stock Cog | iospharo VM |
|---|---|---|---|---|
| 97 | pakarati-pharo-gsoc2025 | ok | tests=1456 P=1456 F=0 E=0 S=0 T=0 X=0 | tests=1456 P=1456 F=0 E=0 S=0 T=0 X=0 |
"Pakarati/pharo-gsoc2025: DTTestCoverageTest>>testDTTestCoverageResultHas2Nodes asserted three sub results of DTTestCoverageResult>>buildTreeForUI. That method builds two nodes (the percent node and the 'Uncovered methods' node); the 'Covered' and 'Partially covered' trees are separate methods (buildTreeForUICovered, buildTreeForUIPartiallyCovered) with their own tree pragmas. The code had two nodes in the first commit of the package, the test name says 2, and the sibling tests read node 1 (percent) and node 2 (leaves). So the number 3 in the assertion is the defect, on every VM and every Pharo version. The repair makes the assertion say 2." fix value: #DTTestCoverageTest value: #testDTTestCoverageResultHas2Nodes value: [ :source | source includesSubstring: 'equals: 3' ] value: 'testDTTestCoverageResultHas2Nodes | resultTree | resultTree := (plugin runForConfiguration: pluginConfiguration) buildTreeForUI. self assert: resultTree subResults size equals: 2'.
State of 2026-11-20. Made from the test records of the iospharo project (a second Pharo VM). The fixes are proposals for review.