incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Culpepper <>
Subject nose tests -- run recently?
Date Mon, 08 Feb 2010 09:17:53 GMT
Hi folks,

I have a test for this get_range_slice() weirdness that I'd like to
integrate into the nose tests in


Is this stuff run regularly? "ant test" works great for me, but does
not run the nosetests. When I run nosetests from the cassandra dir, I
get this:

$ nosetests
ERROR: Failure: ImportError (No module named Cassandra)
Traceback (most recent call last):
  File "/usr/local/python/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/",
line 379, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/local/python/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/",
line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/local/python/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/",
line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/k/jack/cassandra/test/system/", line 31, in <module>
    import Cassandra
ImportError: No module named Cassandra

Ran 1 test in 0.016s

FAILED (errors=1)

Which I think is because


is out of date -- Line 29

_ipath = os.path.join(root, 'interface', 'gen-py')

Should be

_ipath = os.path.join(root, 'interface', 'thrift', 'gen-py')

Ok. Fixed that, but then run nosetests and I get a bunch of other
errors.. I must be doing something wrong. I just checked out the code
like 20 mins ago.

Also, I see that the tests are run on a single node rather than a
multi-node setup. I would be nice if the testing infrastructure
connected to a running cluster, and the standard storage-conf.xml
included the column families necessary for testing. We could do that
by including the test keyspaces in


as a part of the default storage-conf.xml that gets installed with the
system. Best,


View raw message