adapted setup.cfg to use nosetests standard and allow usage of --tests argument, documenting it in the readme

This commit is contained in:
mrigal 2015-04-17 10:36:26 +02:00 committed by Axel Haustant
parent 02c1ba39ad
commit aa7bf7af1e
2 changed files with 7 additions and 1 deletions

View File

@ -109,6 +109,11 @@ tox and each supported Python version should be installed in your environment:
# Run the test suites
$ tox
If you wish to run one single or selected tests, use the nosetest convention. It will find the folder,
eventually the file, go to the TestClass specified after the colon and eventually right to the single test.
Also use the -s argument if you want to print out whatever or access pdb while testing.
``python setup.py nosetests --tests tests/test_django.py:QuerySetTest.test_get_document_or_404 -s``
Community
=========
- `MongoEngine Users mailing list

View File

@ -7,5 +7,6 @@ detailed-errors = 1
#cover-html-dir = ../htmlcov
#cover-package = mongoengine
py3where = build
where = tests
#where = tests
tests = tests
#tests = document/__init__.py