Document test setup.
@@ -5,11 +5,17 @@ Test suite
Running tests
-------------
-Oscar uses pytest_ to run the tests, which can be invoked using::
+Oscar uses pytest_ to run the tests.
+.. _pytest: http://pytest.org/latest/
- $ py.test
+First we create a virtualenv and install the required dependencies::
-.. _pytest: http://pytest.org/latest/
+ $ mkvirtualenv oscar-tests
+ $ pip install -e .[test]
+
+Then we invoke pytest using ::
+
+ $ py.test
You can run a subset of the tests by passing a path:
