snowe
02/23/2022, 9:18 PMInt
as the type here, the tests render in the run panel correctly. But if I switch to Number
, the tests render indexed, without parameters displayed, also it shows the FQDN rather than just the Adder
name.snowe
02/23/2022, 9:31 PMWARN: Duplicated test name com.sunrun.pricing.flex.BaseAdder. To disable this message, set DuplicateTestNameMode to None.
Emil Kantis
02/23/2022, 9:32 PMNumber
not being considered a primitive when checking if it’s stable to use for generating names. Number
must be a platform primitive, right?Emil Kantis
02/23/2022, 9:39 PMnameFn
explicitly, like
withData {
nameFn = BaseAdder::toString,
BaseAdder(..),
..
snowe
02/23/2022, 10:01 PMEmil Kantis
02/23/2022, 10:48 PMEmil Kantis
02/23/2022, 10:48 PMsnowe
02/24/2022, 12:16 AMKotest will only use the toString() of the input class if it thinks the input class has a stable toString() value otherwise it will use the class name.ah. that does explain it.