pharo tests

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

pharo tests

Linus De Meyere
Pharo dev's,

I'm lurking around the Pharo project for a while now. As I wanted to get some hands-on experience with Pharo I thought it was a good idea to fix an easy bug and see how it goes. The wiki page on how to contribute, and the two screen casts are a great help for newbies like me. Nevertheless, I was wondering if there was an important aspect missing from these instructions: what about tests? I know there is a hudson server running the tests regularly, but I wonder if many people are paying attention to it. Shouldn't there be some instruction on how to add tests for new functionally (or even for a bugfix, if tests weren't already there), and then some instructions on how to run all (or some subset of) the tests to get confidence you didn't broke anything with your changes?

How do you, experienced Pharo contributors, go about this? Do you guys run these tests before every check-in? Are there many tests to run? Are there some guidelines to writing tests when contributing to Pharo?

Thx,

Linus

_______________________________________________
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: pharo tests

Stéphane Ducasse
Welcome linus

> Pharo dev's,
>
> I'm lurking around the Pharo project for a while now. As I wanted to get some hands-on experience with Pharo I thought it was a good idea to fix an easy bug and see how it goes. The wiki page on how to contribute, and the two screen casts are a great help for newbies like me. Nevertheless, I was wondering if there was an important aspect missing from these instructions: what about tests? I know there is a hudson server running the tests regularly, but I wonder if many people are paying attention to it. Shouldn't there be some instruction on how to add tests for new functionally (or even for a bugfix, if tests weren't already there), and then some instructions on how to run all (or some subset of) the tests to get confidence you didn't broke anything with your changes?
>
> How do you, experienced Pharo contributors, go about this?

We would love to have all the tests green.

> Do you guys run these tests before every check-in?

Yes

> Are there many tests to run?

a good bag of them but we like tests :)


> Are there some guidelines to writing tests when contributing to Pharo.

Not really but this is really important.
We did a important effort to cover
We should have more coverage.

You can read the SUnit chapter on Pharo by Example but I guess that you are technically fit :)

Stef





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