On Mon, Jul 20, 2009 at 09:29:22AM -0500, Olemis Lang wrote:
> 
> On 7/20/09, Jeff Hammel <jham...@openplans.org> wrote:
> >  On Mon, Jul 20, 2009 at 08:47:21AM -0500, Olemis Lang wrote:
> >  >
> >  > This time my question is very simple (even if `simple` is relative :P) :
> >  > - Is it possible to write and run tests for Trac plugins ?
> >
> > Of course!  You can write tests for damned near anything.
> >
> 
> Well concerning test frameworks (e.g. `unittest`, `doctest` ...) I
> imagine (I'm sure ?) it's possible. but in the case of Trac plugins
> there is a peculiar characteristic:
> 
> - How do I get an env populated with the test data ?
> - How do I mock things ?
> - How can I setup (in the test code) the test env so that it can load
> my plugin ?
> 
> >  > - How ? I mean what are the best practices, procedures, steps (or
> >  >   whatever ;o) to do it.
> >
> > Shoot, I wish I knew.  I'd love to know myself.
> >
> 
> The former are just a few questions (doubts ?) I have. I could start
> writing all that from scratch using any testing framework, but I
> imagine that you already have shortcuts for this (isnt it ? oh !
> please tell me so :( ... ).

No, sadly, my shortcut is not to write tests because its difficult and because 
I don't know if there is a testing framework and I haven't had time to write 
one myself :(  Hence me revoicing your concerns 
 
> >  > - Does any of those integrates with `unittest` ?
> >
> > If you want it to.  I don't know, any insight from someone with more 
> > knowledge to someone like myself that wants to write tests but is not sure 
> > what the best form is?
> >
> 
> Well I've seen some doctests in Trac package written (which could be
> integrated with `unittest` by using `dutest` ;o) and it seems that
> `twill` is around (which is *COOL* :), but the doubts I have are just
> about existing shortcuts (if any) in order to use all that to test
> Trac plugins too ;o)
> 
> -- 
> Regards,
> 
> Olemis.
> 
> Blog ES: http://simelo-es.blogspot.com/
> Blog EN: http://simelo-en.blogspot.com/
> 
> Featured article:
> 
> > 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to