adapted setup.cfg to use nosetests standard and allow usage of --tests argument, documenting it in the readme
This commit is contained in:
parent
02c1ba39ad
commit
aa7bf7af1e
@ -109,6 +109,11 @@ tox and each supported Python version should be installed in your environment:
|
|||||||
# Run the test suites
|
# Run the test suites
|
||||||
$ tox
|
$ 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
|
Community
|
||||||
=========
|
=========
|
||||||
- `MongoEngine Users mailing list
|
- `MongoEngine Users mailing list
|
||||||
|
@ -7,5 +7,6 @@ detailed-errors = 1
|
|||||||
#cover-html-dir = ../htmlcov
|
#cover-html-dir = ../htmlcov
|
||||||
#cover-package = mongoengine
|
#cover-package = mongoengine
|
||||||
py3where = build
|
py3where = build
|
||||||
where = tests
|
#where = tests
|
||||||
|
tests = tests
|
||||||
#tests = document/__init__.py
|
#tests = document/__init__.py
|
Loading…
x
Reference in New Issue
Block a user