[Cuis-dev] [IMPROV] Testing and Debugging Deprecated Methods

Juan Vuletich juan at jvuletich.org
Thu Oct 1 06:22:03 PDT 2020


Hi Gerald,

On 9/29/2020 2:43 PM, Gerald Klix via Cuis-dev wrote:
>
>
> On 2020-09-29 17:08, Juan Vuletich via Cuis-dev wrote:
>> On 9/28/2020 2:17 PM, Gerald Klix via Cuis-dev wrote:
>>> Hi all, hi Juan,
>>>
>>> I suggested in another post to flag unit deprecated methods in unit 
>>> tests.
>>> Now I implemented the required changes.
>>>
>>> Please find a change set and small package with some unit test 
>>> attached to this message.
>>>
>>>
>>> HTH and Best Regards,
>>>
>>> Gerald
>>
>> Thanks Gerald.
>>
>> What do others think? Isn't it enough with keeping a Transcript open 
>> when developing?
>>
>> Cheers,
>>
>
>
> Hi,
>
> The default behavior, printing some text on the
> Transcript, can be changed easily by just changing the default value 
> of one preference.
> (openDebuggerOnDeprecationWarning).
> Of course you can set this one to `true`.
> which will open a PreDebugger-Window.

Of course. My question is more like "Nice functionality. But does it 
carry it's own weight? Is the extra complexity worth it?"

>
> BTW, I took care that deprecated methods show up in unit tests as 
> errors; unless suppressed
> by -- you may have guessed it - changing a preference value. 
> (#flagDeprecationWarningsAsUnitTestError)
>
>
> HTH,
>
> Gerald

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list