Skip to content

Commit

Permalink
Merge pull request #235 from cdent/req-dev-docs
Browse files Browse the repository at this point in the history
Update documentation to indicate requirements-dev.txt
  • Loading branch information
cdent committed Dec 21, 2017
2 parents e2fa73e + c3acc16 commit 8e66ae7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ If you want to make a pull request, fork the gabbi repository and create
a new branch that will contain your changes. Name the branch something
meaningful and related to your change.

See the "Testing and Developing Gabbi" section of the the `README` for
information on setting up a reasonable working environment.

You should provide verbose commit messages on each of your commits. You
should not feel obliged to squash your commits into one commit. We want
to the see the full expression of your process and thinking.
Expand Down
28 changes: 22 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,29 @@ These features mean that it is possible to create tests that are
useful for both humans (as tools for improving and developing APIs)
and automated CI systems.

Testing
-------
Testing and Developing Gabbi
----------------------------

To get started, after cloning the `repository`_, you should install the
development dependencies::

$ pip install -r requirements-dev.txt

To run the built in tests (the YAML files are in the directories
``gabbi/gabbits_*`` and loaded by the file ``gabbi/test_*.py``),
you can use ``tox``::
If you prefer to keep things isolated you can create a virtual
environment::

$ virtualenv gabbi-venv
$ . gabbi-venv/bin/activate
$ pip install -r requirements-dev.txt

Gabbi is set up to be developed and tested using `tox`_ (installed via
``requirements-dev.txt``). To run the built-in tests (the YAML files
are in the directories ``gabbi/tests/gabbits_*`` and loaded by the file
``gabbi/test_*.py``), you call ``tox``::

tox -epep8,py27,py34

Or if you have the dependencies installed (or a warmed up
If you have the dependencies installed (or a warmed up
virtualenv) you can run the tests by hand and exit on the first
failure::

Expand All @@ -86,3 +99,6 @@ after the tox invocation::

If you wish to avoid running tests that connect to internet hosts,
set ``GABBI_SKIP_NETWORK`` to ``True``.

.. _tox: https://tox.readthedocs.io/
.. _repository: https://github.com/cdent/gabbi

0 comments on commit 8e66ae7

Please sign in to comment.