How do I test and share code?

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

How do I test and share code?

David Pollak
Folks,

I've written a couple of classes that add web-based user management  
to Pier.  The classes let you add new users, remove users, set user's  
passwords, bless users as superusers, etc.

First, I'd like to write some tests for the classes.  Ideally, I'd  
like to similar HTTP requests on Pier (much like I can do when I  
write Rails tests) such that I'm testing the functionality of the  
method in the context of living inside Pier/Seaside.

Second, how do I publish the code?  Is it as simple as following the  
Montecello example video (I added 1 method to a Pier class and put it  
in the category *pier-security-manager)?  Or is there more magic I  
have to do?

Thanks,

David


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How do I test and share code?

stéphane ducasse-2

On 16 sept. 06, at 15:39, David Pollak wrote:

> Folks,
>
> I've written a couple of classes that add web-based user management  
> to Pier.  The classes let you add new users, remove users, set  
> user's passwords, bless users as superusers, etc.

I want to see that :)
Do you use the underlying model of lukas or philippe one?

>
> First, I'd like to write some tests for the classes.  Ideally, I'd  
> like to similar HTTP requests on Pier (much like I can do when I  
> write Rails tests) such that I'm testing the functionality of the  
> method in the context of living inside Pier/Seaside.

some guys have been working on a testing framework running on the  
client side. I do not remember the name (albatross)

>
> Second, how do I publish the code?  Is it as simple as following  
> the Montecello example video (I added 1 method to a Pier class and  
> put it in the category *pier-security-manager)?  Or is there more  
> magic I have to do?

No just like in my video.
I think that you can publish on the repo of lukas

>
> Thanks,
>
> David
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners