On Jul 20, 10:05 am, Olemis Lang <ole...@gmail.com> wrote:
> On 7/20/09, Jeff Hammel <jham...@openplans.org> wrote:
>
>
>
> >  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:
>
> >  > 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
>
> Wow ! What a tiny shortcut ! :P
>
> Well in that case I could take some time to make it simpler, but I'd
> not want to start from scratch specially knowing that maybe there's
> something out there being useful ;o)
>
> The fact is that some plugins I maintain are getting bigger and I
> really need to find a way to perform regression tests automatically on
> them. I prefer to spend some time writing something for that purpose
> instead of wasting the same time (or more :-/ ) testing every single
> feature and their interactions
>
> > and because I don't know if there is a testing framework
>
> When I said «I could start writing all that from scratch using any
> testing framework, » I was thinking about general-purpose testing
> framews (e.g. unittest, doctest, nose, py.test, dutest ; or maybe
> others like Mock or twill )
>
> > and I haven't had time to write one myself :(  Hence me revoicing your 
> > concerns
>
> Well probably it's time to code together and start doing it ;o) In the
> end that should be better for everybody : Better plugins for Trac :)
>
> --
> Regards,
>
> Olemis.
>
> Blog ES:http://simelo-es.blogspot.com/
> Blog EN:http://simelo-en.blogspot.com/
>
> Featured article:

trac itself has unit tests, would this not be a good place to start?
http://trac.edgewall.org/browser/branches/0.11-stable/TESTING-README

Just a thought.
--~--~---------~--~----~------------~-------~--~----~
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