bfile tests

David Douard david.douard at logilab.fr
Mon Nov 2 08:47:48 CST 2009


On Monday 02 November 2009 15:18:45 Greg Ward wrote:
> On Sat, Oct 31, 2009 at 6:45 AM, David Douard <david.douard at logilab.fr> 
wrote:
> > the repository of your bfile extension does hold symlinks to files not
> > distributed with the repo, thus making unit tests impossible to run out
> > of a fresh clone. May you please fix that?
>
> Hmmm, good point.  For those of you not hacking on bfiles, what I've
> done is try to use as much of Mercurial's testing infrastructure as I
> can without repeating anything.  E.g. the tests are
>
>   tests/test-add
>   tests/test-create
>   ...
>
> and they are run by
>
>    tests/run-tests.py
>
> which is a symlink to "../../hg-crew/tests/run-tests.py".  That works
> fine for me, since I have a clone of hg-crew next to my clone of
> hg-bfiles wherever I work on hg-bfiles.
>
> What do other extension developers do to leverage Mercurial's test
> infrastructure?  I suppose I could commit a copy of run-tests.py.
> Better idea?

Just write this in a README file in the tests directory :-)


> Greg
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial



-- 
David Douard                        LOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Numpy, Debian :  http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique :         http://www.logilab.fr/science



More information about the Mercurial mailing list