[Zope3-dev] Re: RFC: test.py -s src/zope/something
Philipp von Weitershausen
philipp at weitershausen.de
Sun Jan 14 06:37:34 EST 2007
Marius Gedminas wrote:
> 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.
C:\filter-by-dirs>python test.py
Running unit tests:
Ran 129 tests with 0 failures and 0 errors in 17.259 seconds.
--
http://worldcookery.com -- Professional Zope documentation and training
2nd edition of Web Component Development with Zope 3 is now shipping!
More information about the Zope3-dev
mailing list