Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The "HowToContribute" page has been changed by EricEvans. The comment on this change is: notes on running the avro functional tests. http://wiki.apache.org/cassandra/HowToContribute?action=diff&rev1=18&rev2=19 -------------------------------------------------- == Testing and Coverage == Setting up and running system tests: - 1. install python setuptools, if necessary (`apt-get install python-setuptools`) - 1. `easy_install nose` - 1. from trunk/interface/, run `thrift -gen py cassandra.thrift` - 1. `nosetests` from trunk/ + === Running the functional tests for Thrift RPC === + 1. Install the [[http://somethingaboutorange.com/mrl/projects/nose/0.11.1/|nose]] test runner (`aptitude install python-nose`, `easy_install nose`, etc). + 1. Install the Thrift compiler and Python libraries (http://incubator.apache.org/thrift). + 1. Generate Cassandra's Python code using `ant gen-thrift-py`. + 1. Run `nosetests test/system/test_thrift_server.py` from the top-level source directory. - If you need to modify the system tests, you probably only need to care about test/system/test_server.py. (test/system/__init__.py takes care of spawning new cassandra instances for each test and cleaning up afterwards so they are isolated.) + If you need to modify the system tests, you probably only need to care about test/system/test_thrift_server.py. (test/system/__init__.py takes care of spawning new cassandra instances for each test and cleaning up afterwards so they are isolated.) + + === Running the functional tests for Avro RPC (experimental) === + 1. Install the [[http://somethingaboutorange.com/mrl/projects/nose/0.11.1/|nose]] test runner (`aptitude install python-nose`, `easy_install nose`, etc). + 1. Install the Avro Python library (http://hadoop.apache.org/avro/). Install either r910748 or greater from SVN, or 1.3.0 once it has been released. + 1. Run `nosetests test/system/test_avro_server.py` from the top-level source directory. + + ''Note: If you're setup with both the Thrift and Avro dependencies, you can run all of the tests by simply typing `nosetests` from the top-level directory'' Running the code coverage task:
