Test method auto-generation in Calypso

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Test method auto-generation in Calypso

hernanmd
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

Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

hernanmd
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 (<[hidden email]>) 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

Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

Stephan Eggermont-3
In reply to this post by hernanmd
Hernán Morales Durand
<[hidden email]> 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



Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

Kasper Osterbye
In reply to this post by hernanmd
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 ([hidden email]) 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 (<[hidden email]>) 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

Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

Denis Kudriashov
In reply to this post by hernanmd
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 <[hidden email]>:
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

Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

Kasper Osterbye
On 4 October 2019 at 10.09.25, Denis Kudriashov ([hidden email]) wrote:
On the MacOS it is done by cmd+click on the tab header.

You are my hero of the day!!!

Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

NorbertHartl
In reply to this post by Denis Kudriashov


Am 04.10.2019 um 10:06 schrieb Denis Kudriashov <[hidden email]>:

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 <[hidden email]>:
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

Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

Kasper Osterbye
On 4 October 2019 at 12.39.56, Norbert Hartl ([hidden email]) 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.

👍

Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

Sean P. DeNigris
Administrator
In reply to this post by NorbertHartl
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

Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

Sean P. DeNigris
Administrator
In reply to this post by Kasper Osterbye
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

Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

hernanmd
In reply to this post by Stephan Eggermont-3

Hi Stephan

El vie., 4 oct. 2019 a las 4:40, Stephan Eggermont (<[hidden email]>) escribió:
Hernán Morales Durand
<[hidden email]> 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

Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

hernanmd
In reply to this post by Denis Kudriashov
Hi Denis,

El vie., 4 oct. 2019 a las 5:09, Denis Kudriashov (<[hidden email]>) 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 <[hidden email]>:
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

Reply | Threaded
Open this post in threaded view
|

Re: Test method auto-generation in Calypso

hernanmd
Well, it took some time but I created an issue and dirty implementation proposal:


Cheers,

Hernán

El mié., 9 oct. 2019 a las 1:57, Hernán Morales Durand (<[hidden email]>) escribió:
Hi Denis,

El vie., 4 oct. 2019 a las 5:09, Denis Kudriashov (<[hidden email]>) 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 <[hidden email]>:
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