]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Add note to README about tox usage
authorKevin McCarthy <me@kevinmccarthy.org>
Sun, 9 Feb 2014 18:48:34 +0000 (08:48 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Sun, 9 Feb 2014 18:49:58 +0000 (08:49 -1000)
README.md

index 7749483f7c4e928064c6e315d80081f2a158ee70..562276e84ee9a55146382c24f628853ea5df40ce 100644 (file)
--- a/README.md
+++ b/README.md
@@ -263,6 +263,14 @@ VCR.py is a package on PyPI, so you can `pip install vcrpy` (first you may need
 I'm not trying to match the format of the Ruby VCR YAML files.  Cassettes generated by
 Ruby's VCR are not compatible with VCR.py.
 
+##Running VCR's test suite
+
+The tests are all run automatically on Travis, but you can also run them yourself using py.test and Tox.  Tox will automatically run them in all environments VCR.py supports.  The test suite is pretty big and slow, but you can tell tox to only run specific tests like this:
+
+`tox -e py27requests -- -v -k "'test_status_code or test_gzip'"`
+
+This will run only tests that look like `test_status_code` or `test_gzip` in the test suite, and only in the python 2.7 environment that has requests installed.
+
 ##Known Issues
 This library is a work in progress, so the API might change on you.
 There are probably some [bugs](https://github.com/kevin1024/vcrpy/issues?labels=bug&page=1&state=open) floating around too.