[Zope-Coders] Shane's nightly test vs. my fresh checkout
Tres Seaver
tseaver@zope.com
Tue, 20 Nov 2001 07:27:16 -0500
background@shane.digicool.com wrote:
> No test suite found in file:
> /home/background/zopetest/lib/python/Products/TemporaryFolder/tests/testTemporaryStorage.py
>
> No test suite found in file:
> /home/background/zopetest/lib/python/Products/Sessions/stresstests/testMultiThread.py
>
> No test suite found in file:
> /home/background/zopetest/lib/python/Products/Sessions/tests/testSessionDataManager.py
>
> ----------------------------------------------------------------------
> Ran 1028 tests
I am not seeing the same results with a fresh checkout, either
on my home machine or on korak::
$ cd /home/tseaver/projects
$ cvs -d :ext:cvs.zope.org:/cvs-repository co Zope
.....
$ cd Zope
$ python2.1 wo_pcgi.py
.....
$ python2.1 utiltities/testrunner.py -qa
.......................F..............................................
etc.
======================================================================
FAIL: testExprExplicitDeny (testSecurity.SecurityTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tseaver/projects/Zope/lib/python/AccessControl/tests/testSecurity.py",\
line 137, in testExprExplicitDeny
assert 0, 'Did not deny attribute access'
AssertionError: Did not deny attribute access
----------------------------------------------------------------------
Ran 1067 tests in 281.749s
FAILED (failures=1)
======================================================================
OVERALL FAILED (total failures=1)
Can anyone suggest a reason for the discrepancy?
BTW, I have checked in changes on a branch,
'tseaver-utxr-refactoring-branch', which make it possible to
run all tests using the GUI testrunner; I think we may be able
to promote running them this way as the standard::
$ cvs -q up -r tseaver-utxr-refactoring-branch
$ PYTHONPATH=`pwd`/lib/python:`pwd` python2.1 \
/home/tseaver/projects/unittestgui.py \
Testing.Builder.allZopeTests
yields a "redbar", with the same failure. It runs subsuites
(including modules with only TestCase-derived classes and no
'def test_suite'!), equally easily. For instance, if I change
the test name from 'Testing.Builder.allZopeTests' to
'AccessControl.tests.testSecurity', and click, only those tests
run (but still give me the "redbar", unlike testrunner, which
only fails if I run the whole suite). Whoops, it actually yields
a second test failure, in 'testNoImplicitAccess'; WAAA!
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com