Strange behavior with TestRunner

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

Strange behavior with TestRunner

Noury Bouraqadi-2
On the pharo 1.2-12141, I run the SocketStreamTest. All green.
But, when I try the "Run Coverage" all turn red.

Any hint?

Noury @ ESUG 2010 - Barcelona :-)
---
18th International Smalltalk Joint Conference, September 13 -17 2010 Barcelona, Spain.
http://www.esug.org/Conferences/2010




_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Strange behavior with TestRunner

Alexandre Bergel
You probably rely on what has to be found in a method dictionary. "Run Coverage" replaces compiled methods by a plain object, in which run:with:in: is executed [*]. If in your test you expect to find a compile method, then you may surprises.

Cheers,
Alexandre

[*] http://www.iam.unibe.ch/~scg/Archive/Papers/Bergel06bRDLPrototyping.pdf


On 14 Sep 2010, at 14:14, Noury Bouraqadi wrote:

> On the pharo 1.2-12141, I run the SocketStreamTest. All green.
> But, when I try the "Run Coverage" all turn red.
>
> Any hint?
>
> Noury @ ESUG 2010 - Barcelona :-)
> ---
> 18th International Smalltalk Joint Conference, September 13 -17 2010 Barcelona, Spain.
> http://www.esug.org/Conferences/2010
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Strange behavior with TestRunner

Guillermo Polito
Mmm, so we should change

-the tests to decouple them a bit from the method dictionary,

or

-the Run coverage :).


On Tue, Sep 14, 2010 at 9:19 AM, Alexandre Bergel <[hidden email]> wrote:
You probably rely on what has to be found in a method dictionary. "Run Coverage" replaces compiled methods by a plain object, in which run:with:in: is executed [*]. If in your test you expect to find a compile method, then you may surprises.

Cheers,
Alexandre

[*] http://www.iam.unibe.ch/~scg/Archive/Papers/Bergel06bRDLPrototyping.pdf


On 14 Sep 2010, at 14:14, Noury Bouraqadi wrote:

> On the pharo 1.2-12141, I run the SocketStreamTest. All green.
> But, when I try the "Run Coverage" all turn red.
>
> Any hint?
>
> Noury @ ESUG 2010 - Barcelona :-)
> ---
> 18th International Smalltalk Joint Conference, September 13 -17 2010 Barcelona, Spain.
> http://www.esug.org/Conferences/2010
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project