[Distutils] setuptools "tests" sprint today
Tarek Ziadé
ziade.tarek at gmail.com
Sun Jun 22 14:20:07 CEST 2008
On Sun, Jun 22, 2008 at 11:25 AM, Tarek Ziadé <ziade.tarek at gmail.com> wrote:
> Hi,
>
> Like discussed earlier, some people will work today on adding tests to
> setuptools.
>
> The idea is to add human-readable doctests to setuptools a bit like what
> zc.buildout has.
>
> I am planning to create one doctest per setuptools feature, and some
> general doctest that
> demonstrates the usage of the tool. (functional tests but preferrably with
> no os.popen/os.system magic)
>
Heres a first quick draft for 'develop':
http://paste.plone.org/22122
It uses a bit of magic to simulate a command line usage like in zc.buildout,
to avoid having to write too much test fixture in the doctests.
It prints out all infos written by setuptools to distutils.log.info (so to
stdout as well)
I guess this is enough to write functional tests for all commands,
I am going to write similar doctest for all commands,
Phillip, is this what you had in mind ?
Regards
Tarek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20080622/ac092989/attachment.htm>
More information about the Distutils-SIG
mailing list