-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kura
committed
Sep 17, 2014
1 parent
165261d
commit a9a9d03
Showing
3 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Testing | ||
======= | ||
|
||
Yarg uses the built-in `unittest` framework for Python and uses `nose` as the | ||
test rig. | ||
|
||
Running the tests using the Makefile | ||
------------------------------------ | ||
|
||
A target has been made available in the project's `Makefile` for running the | ||
test rig, it will install all requirements for testing and run the tests. | ||
|
||
.. code-block:: bash | ||
make test | ||
Running the tests without using the Makefile | ||
-------------------------------------------- | ||
|
||
.. code-block:: bash | ||
pip install -r requirements-test.txt | ||
nosetests --processes=$(shell grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu) --with-progressive | ||
Running the tests with tox/detox | ||
-------------------------------- | ||
|
||
A `tox` configuration is also provided if you'd like to run the test rig | ||
against all the supported Python versions. | ||
|
||
You can do this via the `Makefile` target that will install all requirements | ||
and run the tests: | ||
|
||
.. code-block:: bash | ||
make tox | ||
Or you can do it manually: | ||
|
||
.. code-block:: bash | ||
pip install -r requirements.txt -r requirements-test.txt | ||
detox |