@@ -79,35 +79,35 @@ Running the Tests
79
79
=================
80
80
In order for the extensions to be built and used in the test, run::
81
81
82
- python setup.py nosetests
82
+ nosetests
83
83
84
84
You can run a specific test module or package like so::
85
85
86
- python setup.py nosetests -w tests/unit/
86
+ nosetests -w tests/unit/
87
87
88
88
You can run a specific test method like so::
89
89
90
- python setup.py nosetests -w tests/unit/test_connection.py:ConnectionTest.test_bad_protocol_version
90
+ nosetests -w tests/unit/test_connection.py:ConnectionTest.test_bad_protocol_version
91
91
92
92
Seeing Test Logs in Real Time
93
93
-----------------------------
94
94
Sometimes it's useful to output logs for the tests as they run::
95
95
96
- python setup.py nosetests -w tests/unit/ --nocapture --nologcapture
96
+ nosetests -w tests/unit/ --nocapture --nologcapture
97
97
98
98
Use tee to capture logs and see them on your terminal::
99
99
100
- python setup.py nosetests -w tests/unit/ --nocapture --nologcapture 2>&1 | tee test.log
100
+ nosetests -w tests/unit/ --nocapture --nologcapture 2>&1 | tee test.log
101
101
102
102
Specifying a Cassandra Version for Integration Tests
103
103
----------------------------------------------------
104
104
You can specify a cassandra version with the ``CASSANDRA_VERSION `` environment variable::
105
105
106
- CASSANDRA_VERSION=2.0.9 python setup.py nosetests -w tests/integration/standard
106
+ CASSANDRA_VERSION=2.0.9 nosetests -w tests/integration/standard
107
107
108
108
You can also specify a cassandra directory (to test unreleased versions)::
109
109
110
- CASSANDRA_DIR=/home/thobbs/cassandra python setup.py nosetests -w tests/integration/standard
110
+ CASSANDRA_DIR=/home/thobbs/cassandra nosetests -w tests/integration/standard
111
111
112
112
Specifying the usage of an already running Cassandra cluster
113
113
----------------------------------------------------
@@ -120,7 +120,7 @@ Specify a Protocol Version for Tests
120
120
The protocol version defaults to 1 for cassandra 1.2 and 2 otherwise. You can explicitly set
121
121
it with the ``PROTOCOL_VERSION `` environment variable::
122
122
123
- PROTOCOL_VERSION=3 python setup.py nosetests -w tests/integration/standard
123
+ PROTOCOL_VERSION=3 nosetests -w tests/integration/standard
124
124
125
125
Testing Multiple Python Versions
126
126
--------------------------------
0 commit comments