From 08ba4a5d542c2dbb57380790349b18407fec24cd Mon Sep 17 00:00:00 2001 From: bjmb Date: Thu, 12 Jan 2017 11:10:38 -0500 Subject: [PATCH 1/2] Added some minor comments to README-dev.srt --- README-dev.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README-dev.rst b/README-dev.rst index e7c056c1..0b140456 100644 --- a/README-dev.rst +++ b/README-dev.rst @@ -102,6 +102,12 @@ You can also specify a cassandra directory (to test unreleased versions):: CASSANDRA_DIR=/home/thobbs/cassandra python setup.py nosetests -w tests/integration/standard +Specifying the usage of an already running Cassandra cluster +---------------------------------------------------- +The test will start the appropriate Cassandra clusters when necessary but if you don't want this to happen because a Cassandra cluster is already running the flag ``USE_CASS_EXTERNAL`` can be used, for example: + + USE_CASS_EXTERNAL=1 python setup.py nosetests -w tests/integration/standard + Specify a Protocol Version for Tests ------------------------------------ The protocol version defaults to 1 for cassandra 1.2 and 2 otherwise. You can explicitly set @@ -126,6 +132,10 @@ and change ``tests/unit/`` to ``tests/``. Running the Benchmarks ====================== +There needs to be a version of cassandra running locally so before running the benchmarks, if ccm is installed: + + ccm create benchmark_cluster -v 3.0.1 && ccm populate -n 1 && ccm start + To run the benchmarks, pick one of the files under the ``benchmarks/`` dir and run it:: python benchmarks/future_batches.py From 7aeae52783af0d41ec04681e95da2a8fcac1c750 Mon Sep 17 00:00:00 2001 From: bjmb Date: Thu, 12 Jan 2017 15:02:44 -0500 Subject: [PATCH 2/2] Acknowledging comment on the ccm command --- README-dev.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README-dev.rst b/README-dev.rst index 0b140456..a549bf8a 100644 --- a/README-dev.rst +++ b/README-dev.rst @@ -134,7 +134,7 @@ Running the Benchmarks ====================== There needs to be a version of cassandra running locally so before running the benchmarks, if ccm is installed: - ccm create benchmark_cluster -v 3.0.1 && ccm populate -n 1 && ccm start + ccm create benchmark_cluster -v 3.0.1 -n 1 -s To run the benchmarks, pick one of the files under the ``benchmarks/`` dir and run it::