Test method auto-generation in Calypso
Hi, I have this idea of typing a method in a Browser and have another code area in the same browser where the method test is "automagically generated". This is, divide the current method pane in two: One for the method being written itself, and another for its test, where at least the method selector could be autogenerated by writing testXXXX Of course being able to jump to the method test would be super nice! (and with a keyboard shortcut). This reminds myself to write the method now instead of forget it forever. Any hints to make this happen in Calypso? Cheers, Hernán
Ok, any hint to split the code area in Calypso at least? Salut! Hernán El mié., 25 sept. 2019 a las 1:06, Hernán Morales Durand (< hernan.morales@gmail.com>) escribió:
Hi,
I have this idea of typing a method in a Browser and have another code area in the same browser where the method test is "automagically generated".
This is, divide the current method pane in two: One for the method being written itself, and another for its test, where at least the method selector could be autogenerated by writing testXXXX
Of course being able to jump to the method test would be super nice! (and with a keyboard shortcut). This reminds myself to write the method now instead of forget it forever.
Any hints to make this happen in Calypso?
Cheers,
Hernán
I clearly understand your issue of having ways to show more code on the screen (at least that is how I interpret the issue). Here are a few tricks I only learned recently, and which has helped me live with what is in the standard image. Double clicking on a code tab maximises the code window, double clicking it again brings it back to normal. Double clicking on a method name opens a new browser with the method selected (same works for the other 3 browser panes). This allow me to work with more code on the screen, and fewer lists. I am on mac, using pharo 8. Best, Kasper On 1 October 2019 at 06.35.02, Hernán Morales Durand ( hernan.morales@gmail.com) wrote: Ok, any hint to split the code area in Calypso at least? Salut! Hernán El mié., 25 sept. 2019 a las 1:06, Hernán Morales Durand (< hernan.morales@gmail.com>) escribió:
Hi,
I have this idea of typing a method in a Browser and have another code area in the same browser where the method test is "automagically generated".
This is, divide the current method pane in two: One for the method being written itself, and another for its test, where at least the method selector could be autogenerated by writing testXXXX
Of course being able to jump to the method test would be super nice! (and with a keyboard shortcut). This reminds myself to write the method now instead of forget it forever.
Any hints to make this happen in Calypso?
Cheers,
Hernán
Kasper Osterbye wrote
Double clicking on a code tab maximises the code window, double clicking it again brings it back to normal.
This is cool - and seems to be new for Pharo 8. It does nothing in my 7.0.3 image. Kasper Osterbye wrote
Double clicking on a method name opens a new browser with the method selected (same works for the other 3 browser panes).
Ah, nice one! ----- Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Hi,
I have this idea of typing a method in a Browser and have another code area in the same browser where the method test is "automagically generated".
This is, divide the current method pane in two: One for the method being written itself, and another for its test, where at least the method selector could be autogenerated by writing testXXXX
When do you find that useful? I have only a very small number of test cases where the name of the test is that of the method. Stephan
Hi Stephan El vie., 4 oct. 2019 a las 4:40, Stephan Eggermont (<stephan@stack.nl>) escribió:
Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Hi,
I have this idea of typing a method in a Browser and have another code area in the same browser where the method test is "automagically generated".
This is, divide the current method pane in two: One for the method being written itself, and another for its test, where at least the method selector could be autogenerated by writing testXXXX
When do you find that useful? I have only a very small number of test cases where the name of the test is that of the method.
Actually I don't care too much about the test name, but it would be super for me to have a side code pane (IN the same browser window) to remember to write/update the current method test. It is more an usability issue. Hernán
Hi Hernan. Sorry for late response (noticed mail just now). First try to implement just another browser tab which will show you covering test or allow to create one. Check for example how extra tab with test setup is done. Then there is a feature in the tab manager to show multiple tabs at same time. On the MacOS it is done by cmd+click on the tab header. Maybe it will be enough for your idea. Best regards, Denis ÑÑ, 25 ÑенÑ. 2019 г., 5:07 Hernán Morales Durand <hernan.morales@gmail.com>:
Hi,
I have this idea of typing a method in a Browser and have another code area in the same browser where the method test is "automagically generated".
This is, divide the current method pane in two: One for the method being written itself, and another for its test, where at least the method selector could be autogenerated by writing testXXXX
Of course being able to jump to the method test would be super nice! (and with a keyboard shortcut). This reminds myself to write the method now instead of forget it forever.
Any hints to make this happen in Calypso?
Cheers,
Hernán
On 4 October 2019 at 10.09.25, Denis Kudriashov (dionisiydk@gmail.com) wrote: On the MacOS it is done by cmd+click on the tab header. You are my hero of the day!!!
Am 04.10.2019 um 10:06 schrieb Denis Kudriashov <dionisiydk@gmail.com>:
Hi Hernan. Sorry for late response (noticed mail just now).
First try to implement just another browser tab which will show you covering test or allow to create one. Check for example how extra tab with test setup is done.
Then there is a feature in the tab manager to show multiple tabs at same time. On the MacOS it is done by cmd+click on the tab header.
I read so many explanations how you can do stuff with mouse, cmd click ir whatever. How can I figure out that on my own? If it is hidden it is pretty useless. Norbert
Maybe it will be enough for your idea.
Best regards, Denis
ÑÑ, 25 ÑенÑ. 2019 г., 5:07 Hernán Morales Durand <hernan.morales@gmail.com>:
Hi,
I have this idea of typing a method in a Browser and have another code area in the same browser where the method test is "automagically generated".
This is, divide the current method pane in two: One for the method being written itself, and another for its test, where at least the method selector could be autogenerated by writing testXXXX
Of course being able to jump to the method test would be super nice! (and with a keyboard shortcut). This reminds myself to write the method now instead of forget it forever.
Any hints to make this happen in Calypso?
Cheers,
Hernán
On 4 October 2019 at 12.39.56, Norbert Hartl (norbert@hartl.name) wrote: I read so many explanations how you can do stuff with mouse, cmd click ir whatever. How can I figure out that on my own? If it is hidden it is pretty useless. ð
NorbertHartl wrote
I read so many explanations how you can do stuff with mouse, cmd click ir whatever. How can I figure out that on my own? If it is hidden it is pretty useless.
This is a very important point. Since we have commander, shouldn't it be relatively straightforward to show a window with all the commands/shortcuts/mouse-gestures? IIRC we had something like this in the past. ----- Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Hi Denis, El vie., 4 oct. 2019 a las 5:09, Denis Kudriashov (<dionisiydk@gmail.com>) escribió:
Hi Hernan. Sorry for late response (noticed mail just now).
First try to implement just another browser tab which will show you covering test or allow to create one. Check for example how extra tab with test setup is done.
Cool!! Well structured!
Then there is a feature in the tab manager to show multiple tabs at same time. On the MacOS it is done by cmd+click on the tab header.
That deserves a lot of points :) Thank you for sharing! Maybe it will be enough for your idea.
I will keep you noticed Hernán Best regards,
Denis
ÑÑ, 25 ÑенÑ. 2019 г., 5:07 Hernán Morales Durand <hernan.morales@gmail.com
:
Hi,
I have this idea of typing a method in a Browser and have another code area in the same browser where the method test is "automagically generated".
This is, divide the current method pane in two: One for the method being written itself, and another for its test, where at least the method selector could be autogenerated by writing testXXXX
Of course being able to jump to the method test would be super nice! (and with a keyboard shortcut). This reminds myself to write the method now instead of forget it forever.
Any hints to make this happen in Calypso?
Cheers,
Hernán
Well, it took some time but I created an issue and dirty implementation proposal: https://github.com/pharo-ide/Calypso/issues/498 Cheers, Hernán El mié., 9 oct. 2019 a las 1:57, Hernán Morales Durand (< hernan.morales@gmail.com>) escribió:
Hi Denis,
El vie., 4 oct. 2019 a las 5:09, Denis Kudriashov (<dionisiydk@gmail.com>) escribió:
Hi Hernan. Sorry for late response (noticed mail just now).
First try to implement just another browser tab which will show you covering test or allow to create one. Check for example how extra tab with test setup is done.
Cool!! Well structured!
Then there is a feature in the tab manager to show multiple tabs at same time. On the MacOS it is done by cmd+click on the tab header.
That deserves a lot of points :) Thank you for sharing!
Maybe it will be enough for your idea.
I will keep you noticed
Hernán
Best regards,
Denis
ÑÑ, 25 ÑенÑ. 2019 г., 5:07 Hernán Morales Durand < hernan.morales@gmail.com>:
Hi,
I have this idea of typing a method in a Browser and have another code area in the same browser where the method test is "automagically generated".
This is, divide the current method pane in two: One for the method being written itself, and another for its test, where at least the method selector could be autogenerated by writing testXXXX
Of course being able to jump to the method test would be super nice! (and with a keyboard shortcut). This reminds myself to write the method now instead of forget it forever.
Any hints to make this happen in Calypso?
Cheers,
Hernán
participants (6)
-
Denis Kudriashov -
Hernán Morales Durand -
Kasper Ãsterbye -
Norbert Hartl -
Sean P. DeNigris -
Stephan Eggermont