[Cuis-dev] [Contribution] Keyboard shortcut to run tests with code coverage
Hernán Wilkinson
hernan.wilkinson at 10pines.com
Fri Jun 19 12:04:47 PDT 2026
Hi Rocio,
I'm adding the cuis list to the thread :-)
I tested it and works great but I found these two problems:
1) The option does not appear on the Method Categories menu, and the 'c'
shortcut is already taken by the "Categorize all uncategorized" option.
2) The shortcut does not work on the messages list ... I do not know why
because the menu option is there.
Could you check and fix these two issues? Regarding the 'c' collision in
the Methods Categories list, maybe we could change 'c' to 'T' (uppercase t)
in all the lists if 'T' is not taken. I'll talk with the code
coverage package when you fix it.
Thanks!
Hernan.
On Fri, Jun 19, 2026 at 3:41 PM ROCÍO ELIZABETH VERA <rvera at fi.uba.ar>
wrote:
> Hi Hernan, thank you so much for the feedback!
>
> You're right about the package — I'm aware CodeCoverage isn't loaded in
> Cuis by default and that it comes with CuisUniversity. My change extends
> that package specifically, so it only makes sense for setups that already
> have it loaded.
>
> About the `Cmd+C` / copy question: there's no conflict. The shortcut I
> added is registered in the browser's **list** menu specs (message list,
> class list, etc.), where shortcuts are single keystrokes, just like `t` for
> "run tests". It only triggers when the focus is on one of those lists, not
> on the code editor. The editor's `Cmd+C` copy keeps working normally — I
> tested both: copying text in the editor still works, and pressing `c` while
> a method/class is selected in the list runs the tests with coverage.
>
> If you think a different key would be clearer to avoid any confusion, I'm
> happy to change it — `c` just felt natural for "coverage".
>
> Thanks again for taking the time to look at this!
>
> Cheers,
> Rocío
>
> El vie, 19 jun 2026 a las 15:31, Hernán Wilkinson (<
> hernan.wilkinson at 10pines.com>) escribió:
>
>> Hi Rocío!
>> That is really useful, but keep in mind that Cuis does not have the
>> CodeCoverage package loaded by default; CuisUniversity has it (you are
>> using CuisUniversity at university :-) )
>> On the other hand, does not cmd+c conflict with "copy" when used in the
>> editor? Or is the shortcut only active when in the browser's lists?
>>
>> Cheers!
>> Hernan.
>>
>> On Fri, Jun 19, 2026 at 3:03 PM ROCÍO ELIZABETH VERA via Cuis-dev <
>> cuis-dev at lists.cuis.st> wrote:
>>
>>> Hello everyone,
>>>
>>> My name is Rocio Vera and I'm a Computer Engineering student at the
>>> University of Buenos Aires (UBA). I'm currently taking Software Engineering
>>> 1, a course where we learn Smalltalk using Cuis.
>>>
>>> As part of the course, we were asked to contribute to the Cuis
>>> ecosystem, and I thought it would be useful to add a **keyboard shortcut to
>>> run tests with code coverage**. Until now, the CodeCoverage package only
>>> offered this option from the context menu; my change adds the shortcut `c`
>>> (for *coverage*) to the System Browser panels, in the same way that `t`
>>> already exists for "run tests". I also updated the menu labels to reflect
>>> the shortcut, e.g., "Run Tests with Coverage (c)".
>>>
>>> The change is implemented in the `CodeCoverageBrowserMenues` class, by
>>> populating the shortcut field in the menu specs (`systemCatListMenuSpec`,
>>> `classListMenuSpec`, `methodCategoriesListMenuSpec`, and
>>> `messageListMenuSpec`) and maintaining the registration using
>>> `BrowserWindow registerAll:`.
>>>
>>> I've attached the `.st` file with the modifications. I tested it on CUIS
>>> 7.5 (update #7641) with the CodeCoverage package loaded at its current
>>> version.
>>>
>>> I look forward to your comments and suggestions. Thank you very much for
>>> your time and help.
>>>
>>> Regards,
>>> Rocio Vera
>>> --
>>> Cuis-dev mailing list
>>> Cuis-dev at lists.cuis.st
>>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>>
>>
>>
>> --
>>
>> *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
>>
>
--
*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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260619/072d5f94/attachment.htm>
More information about the Cuis-dev
mailing list