Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
test docs
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam committed Jan 4, 2017
1 parent d381251 commit cad09f3
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,23 @@ Discussion is open and welcome.

**Testing**

To run tests, setup a virtualenv and install tox with ``pip install tox`` then
run ``tox`` in the project directory. To only run tests for a certain
environment run e.g. ``tox -e py35-django110``.
To run integration tests you need to setup an S3 bucket with the name
``collectfast`` and set your AWS credentials as environment variables. You can
do this by adding them to a file ``aws-credentials`` like this:

.. code:: bash
export AWS_ACCESS_KEY_ID="XXXX"
export AWS_SECRET_ACCESS_KEY="XXXX"
And then running the tests with ``. aws-credentials && python runtests.py``.

If you don't feel like setting up an S3 bucket, just skip setting the
environment variables. The integration tests will still run but fail.

To run tests with tox, setup a virtualenv and install tox with
``pip install tox`` then run ``tox`` in the project directory. To only run
tests for a certain environment run e.g. ``tox -e py35-django110``.


License
Expand Down

0 comments on commit cad09f3

Please sign in to comment.