Change an existing method from another project
Hi, I'm going to provide a new way to write unit tests without having prefixed test methods with the word 'test'. As I don't want to write another unit test framework, I need to change some methods of SUnit (as well of Autotest). Is there any way to do that from an external project without creating a specific fork of theses projects? Mig
Miguel please do the following: - Fork and copy and past SUnit and extend it - In the past I modified SUnit and after people complained that it was not the right version and my extensions got lost when we reloaded the latest version of SUnit. So let us invent some new way to write tests :). Stef
Hi,
I'm going to provide a new way to write unit tests without having prefixed test methods with the word 'test'. As I don't want to write another unit test framework, I need to change some methods of SUnit (as well of Autotest). Is there any way to do that from an external project without creating a specific fork of theses projects?
Mig
Ok, I will extend SUnit to integrate my extensions. (It is unfortunate because there is just only one or two methods to change.) Le 11/06/2011 19:17, Stéphane Ducasse a écrit :
Miguel
please do the following: - Fork and copy and past SUnit and extend it - In the past I modified SUnit and after people complained that it was not the right version and my extensions got lost when we reloaded the latest version of SUnit. So let us invent some new way to write tests :).
Stef
Hi,
I'm going to provide a new way to write unit tests without having prefixed test methods with the word 'test'. As I don't want to write another unit test framework, I need to change some methods of SUnit (as well of Autotest). Is there any way to do that from an external project without creating a specific fork of theses projects?
Mig
On Mon, Jun 13, 2011 at 9:09 AM, Miguel Moquillon < miguel.moquillon@gmail.com> wrote:
Ok,
I will extend SUnit to integrate my extensions. (It is unfortunate because there is just only one or two methods to change.)
Or just open an issue and publish a slice. Laurent.
Le 11/06/2011 19:17, Stéphane Ducasse a écrit :
Miguel
please do the following: - Fork and copy and past SUnit and extend it - In the past I modified SUnit and after people complained that it was not the right version and my extensions got lost when we reloaded the latest version of SUnit. So let us invent some new way to write tests :).
Stef
Hi,
I'm going to provide a new way to write unit tests without having prefixed test methods with the word 'test'. As I don't want to write another unit test framework, I need to change some methods of SUnit (as well of Autotest). Is there any way to do that from an external project without creating a specific fork of theses projects?
Mig
On Jun 13, 2011, at 9:09 AM, Miguel Moquillon wrote:
Ok,
I will extend SUnit to integrate my extensions. (It is unfortunate because there is just only one or two methods to change.)
so be ready that your code will not work when the next version of Sunit show up. I really think that this is better to fork one version where we can do what we want. Stef
Le 11/06/2011 19:17, Stéphane Ducasse a écrit :
Miguel
please do the following: - Fork and copy and past SUnit and extend it - In the past I modified SUnit and after people complained that it was not the right version and my extensions got lost when we reloaded the latest version of SUnit. So let us invent some new way to write tests :).
Stef
Hi,
I'm going to provide a new way to write unit tests without having prefixed test methods with the word 'test'. As I don't want to write another unit test framework, I need to change some methods of SUnit (as well of Autotest). Is there any way to do that from an external project without creating a specific fork of theses projects?
Mig
Le 13/06/2011 17:57, Stéphane Ducasse a écrit :
On Jun 13, 2011, at 9:09 AM, Miguel Moquillon wrote:
Ok,
I will extend SUnit to integrate my extensions. (It is unfortunate because there is just only one or two methods to change.)
so be ready that your code will not work when the next version of Sunit show up. I really think that this is better to fork one version where we can do what we want.
Thus I have two possible solutions: - provide a direct contribution to the SUnit project with my code, - or fork SUnit to a new project (PharoUnit?) so that anybody can enhance the unit test framework for Pharo. In fact, I don't know if the Pragma implementation in Pharo is specific to the Squeak/Pharo smalltalk dialect. In that case, I think it would be better to fork SUnit as my changes will be based upon pragmas. Mig
On Tue, Jun 14, 2011 at 9:06 AM, Miguel Moquillon < miguel.moquillon@gmail.com> wrote:
Le 13/06/2011 17:57, Stéphane Ducasse a écrit :
On Jun 13, 2011, at 9:09 AM, Miguel Moquillon wrote:
Ok,
I will extend SUnit to integrate my extensions. (It is unfortunate because there is just only one or two methods to change.)
so be ready that your code will not work when the next version of Sunit show up. I really think that this is better to fork one version where we can do what we want.
Thus I have two possible solutions: - provide a direct contribution to the SUnit project with my code, - or fork SUnit to a new project (PharoUnit?) so that anybody can enhance the unit test framework for Pharo.
In fact, I don't know if the Pragma implementation in Pharo is specific to the Squeak/Pharo smalltalk dialect. In that case, I think it would be better to fork SUnit as my changes will be based upon pragmas.
Indeed http://squeaksource.com/SUnit is global Read / Write, creator/admin = Marcus Denker, so I suppose you can submit a package/branch in this repo safely. Laurent
Mig
On Sat, Jun 11, 2011 at 6:33 PM, Miguel Moquillon < miguel.moquillon@gmail.com> wrote:
Hi,
I'm going to provide a new way to write unit tests without having prefixed test methods with the word 'test'. As I don't want to write another unit test framework, I need to change some methods of SUnit (as well of Autotest).
Cool Miguel ! Will you use a pragma like <test> <before> <after> ? I want it :) For Autotest don't hesitate to commit directly in Autotest repository. Laurent
Is there any way to do that from an external project without creating a specific fork of theses projects?
Mig
Jannik and I were discussing of that 2 days ago :) No more behavior based on strings ;) (we should also find a real way to declare extensions) So good luck Miguel, I am waiting for your project ;) Ben On Jun 11, 2011, at 8:22 PM, laurent laffont wrote:
On Sat, Jun 11, 2011 at 6:33 PM, Miguel Moquillon <miguel.moquillon@gmail.com> wrote: Hi,
I'm going to provide a new way to write unit tests without having prefixed test methods with the word 'test'. As I don't want to write another unit test framework, I need to change some methods of SUnit (as well of Autotest).
Cool Miguel ! Will you use a pragma like <test> <before> <after> ? I want it :)
For Autotest don't hesitate to commit directly in Autotest repository.
Laurent
Is there any way to do that from an external project without creating a specific fork of theses projects?
Mig
Yes. You're right ;-) it will be based on pragmas Mig Le 11 juin 2011 à 20:23, laurent laffont <laurent.laffont@gmail.com> a écrit : On Sat, Jun 11, 2011 at 6:33 PM, Miguel Moquillon < miguel.moquillon@gmail.com> wrote:
Hi,
I'm going to provide a new way to write unit tests without having prefixed test methods with the word 'test'. As I don't want to write another unit test framework, I need to change some methods of SUnit (as well of Autotest).
Cool Miguel ! Will you use a pragma like <test> <before> <after> ? I want it :) For Autotest don't hesitate to commit directly in Autotest repository. Laurent
Is there any way to do that from an external project without creating a specific fork of theses projects?
Mig
participants (4)
-
Benjamin -
laurent laffont -
Miguel Moquillon -
Stéphane Ducasse