Pharo test defects

Package: pharo-gsoc2025 (Pakarati/pharo-gsoc2025, row 97)

State
Fixed (package repair)
Defect in
see the record
Tests
0
Fix
pakarati-pharo-gsoc2025.st
Upstream repository
Pakarati/pharo-gsoc2025

The record is the text of the repair. The Results table is the last run of the row.

Record

Test

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.

Results

Last result of the package run (stock Cog and iospharo on the same image).

RowLabelLoadStock Cogiospharo VM
97pakarati-pharo-gsoc2025oktests=1456 P=1456 F=0 E=0 S=0 T=0 X=0tests=1456 P=1456 F=0 E=0 S=0 T=0 X=0

Fix

Fixes file (filed in after the load): pakarati-pharo-gsoc2025.st (download)
"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.