[Zope3-dev] RFC: test.py -s src/zope/something
Marius Gedminas
mgedmin at b4net.lt
Fri Jan 12 18:44:17 EST 2007
A long time ago test.py -s accepted directory names. Later it was
changed to take package names instead. There is some
backwards-compatibility code that replaces slashes with dots, but it is
incomplete: test.py -s src/zope would try to run the tests for a
nonexistent package "src.zope".
I have expanded the backwards-compatibility/convenience code in a
branch:
http://svn.zope.org/zope.testing/branches/filter-by-dirs/?rev=71986&view=rev
The test runner has a mapping of directory names to package names, and I
use it in reverse to get the package name from the directory name. As a
result you can use your shell's directory name completion for the test
runner command line, and, for example, test.py -s src/zope now works.
I would appreciate it if someone could check out this branch and run its
tests on Windows.
Marius Gedminas
--
The advertisement is the most truthful part of a newspaper.
-- Thomas Jefferson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20070113/5c9e7798/attachment.bin
More information about the Zope3-dev
mailing list