← Back to team overview

gtg-user team mailing list archive

Re: Unittests for gtg

 

Hi,

Just a word to tell you that I just finished to write a full series of
unitary tests for localfile backend. It's available at :
https://bugs.edge.launchpad.net/gtg/+bug/298201/comments/4

Best regards,
Carl Chenet
www.ohmytux.com

Le lundi 09 mars 2009 à 12:10 +0100, Lionel Dricot a écrit :
> Hi,
> 
> This is definitely a must (see bug
> https://bugs.edge.launchpad.net/gtg/+bug/298201 which was, for no reason,
> written in French).
> 
> We plan to build a test suite for 0.2 and your help is greatly
> appreciated. It seems that your tests are currently only testing the
> backend so it's more a backend test than a gtg test but it doesn't lower
> its value.
> 
> Au contraire, a good test suite for backends will really be important the
> day we will have multiple backends.
> 
> What are the best practices regarding unit tests in python application ?
> Having a tests folder with a script that launch them all ? Anything else ?
> If you have the experience with that kind of stuff, please feel free to
> add the folders you want to the code and to submit a patch.
> 
> Regarding your current test, could you please attach it to the related bug
> ? I will not be able to integrate your work before the end of this week
> but I really appreciate :-)
> 
> Lionel
> 
> 
> > Hi,
> >
> > Interested in GTG ('cause I'm soooo careless for things I have to do
> > sometimes), I'm also fond of Python so I began to read the GTG code.
> > I wrote some really simple unittests for now but the more I will
> > understand the code and GTG behaviors and the more these tests will
> > become complex.
> > Theses tests use functions and class embedded in
> > GTG/backends/localfile.py. You can launch gtgunittests.py from the root
> > directory of the source repository. Later could be nice to have one test
> > series by module... later.
> >
> > Tell me if it could help!
> > Carl Chenet
> > www.ohmytux.com/belier
> > _______________________________________________
> > Mailing list: https://launchpad.net/~gtg-user
> > Post to     : gtg-user@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~gtg-user
> > More help   : https://help.launchpad.net/ListHelp
> >
> 
> 




References