[Cuis-dev] How would you like cmd+y to behave?

Nicolás Papagna Maldonado nicolas.papagna at gmail.com
Wed Mar 19 05:10:38 PDT 2025


Hi Hernan!

I'll go with #2.

I feel like once a test passes, I want to make sure all related tests pass
as well (i.e. the "module" the test belongs to keeps working after my
changes).

There is a subtlety there: what's the "module" of the passed test?

   - If the test is part of a package, then I would expect the tool to run
   all tests from that package.
   - If the test is not part of a package, I would expect the tool to run
   all tests in the test's system category root and all of its
   descendant system categories.
   For example, if we don't do the package check, when I run a test in my
   Tools-Finder package I'll end up running all tests in the Tool system
   category.
   Those are going to be probably unrelated to the work I was doing in
   Finder when I ran the test.

This is something I looked up when I built Code Coverage, but never got to
implement :/

Cheers,
Nico PM


On Tue, Mar 18, 2025 at 8:40 PM Mark Volkmann via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Option #1 seems good to me.
>
> On Tue, Mar 18, 2025 at 5:15 PM Hernán Wilkinson via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> Hi, this is a survey, please answer :-)
>>
>> If you press cmd+y when editing a test method, it saves it (if
>> necessary), runs the tests and if passes, runs all the tests in the system
>> category.
>> When the system category hierarchy was introduced, this behavior was not
>> changed but programmers sometimes expect cmd+y to run tests of all the
>> system category "family" (that is its root and all children categories),
>> but sometimes they expect the current behavior.
>> I think that the best solution would be to add a new menu option such as
>> "Save & Run Test in Category Family (Y)" so we have all options covered. I
>> think I would add the same option to the system category menu, but I'd like
>> to know what you think, therefore the survey:
>>
>> 1) Add  "Save & Run Tests in Category Family (Y)" as a menu option to the
>> Smalltalk Editor and add "Run Test sin Category Family (Y)" as a menu
>> option to the System Category Menu.
>> 2) Change the current behavior of cmd+y and run all tests of the category
>> family and add "Run Test in Category Family (y)" as a menu option to the
>> System Category Menu.
>> 3) Do nothing, if you want to run all tests of the system category family
>> go to the root category and press cmd+t
>> 4) Other!
>>
>> Which one do you prefer?
>>
>> Cheers!
>> Hernan
>> --
>>
>> *Hernán WilkinsonAgile Software Development, Teaching & Coaching*
>> *Phone: +54-011*-4893-2057
>> *Twitter: @HernanWilkinson*
>> *site: http://www.10Pines.com <http://www.10pines.com/>*
>> Address: Alem 896, Floor 6, Buenos Aires, Argentina
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>


-- 

Nicolás Papagna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250319/2d0e7601/attachment-0001.htm>


More information about the Cuis-dev mailing list