Pharo test defects

Package: ParametrizedTests (tesonep/ParametrizedTests, row 32)

State
Fixed (package repair)
Defect in
see the record
Tests
0
Fix
tesonep-parametrizedtests.st
Upstream repository
tesonep/ParametrizedTests

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 32"
Metacello new baseline: 'ParametrizedTests'; repository: 'github://tesonep/ParametrizedTests:master/src'; onConflict: [:e | e useIncoming]; load.

Results

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

RowLabelLoadStock Cogiospharo VM
32tesonep-parametrizedtestsoktests=139 P=139 F=0 E=0 S=0 T=0 X=0tests=139 P=139 F=0 E=0 S=0 T=0 X=0

Fix

Fixes file (filed in after the load): tesonep-parametrizedtests.st (download)
"ParametrizedTests (tesonep/ParametrizedTests, master 9c43791): Pharo 14 contains
this package in SUnit-Core (ParametrizedTestCase, ParametrizedTestMatrix,
ParametrizedTestOption, ParametrizedTestExpandedParameter) and SUnit-Tests
(PaSuiteTest and the Pa*ExampleTest classes).  The load of the old package
replaces the Pharo 14 method ParametrizedTestMatrix>>addCase: with the old
version.  The old version sends #asDictionary to its argument and expects
associations.  Pharo 14 passes arrays of ParametrizedTestExpandedParameter
(ParametrizedTestMatrix>>*), and the old code sends #key to an expanded
parameter: ShouldBeImplemented.  Three tests of PaSuiteTest that exist only in
Pharo 14 (testMultiply...MultiplyCases) fail on stock Cog and on our VM.

The repair puts back the Pharo 14 source of the method."

fix value: #ParametrizedTestMatrix value: #addCase:
	value: [ :source | source includesSubstring: 'asDictionary' ]
	value:
'addCase: aCollection
	"Declare a specific configuration of parameters. See forSelector:addOptions: for matrix combinations."

	cases add: (aCollection
		collect: [ :assoc | assoc asTestParameter ]
		as: Array).

	^ self'.

State of 2026-11-20. Made from the test records of the iospharo project (a second Pharo VM). The fixes are proposals for review.