From aa7bf7af1e7228c169fc788f3196966700c7055a Mon Sep 17 00:00:00 2001 From: mrigal Date: Fri, 17 Apr 2015 10:36:26 +0200 Subject: [PATCH] adapted setup.cfg to use nosetests standard and allow usage of --tests argument, documenting it in the readme --- README.rst | 5 +++++ setup.cfg | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 59fbe194..6e32d3f3 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/setup.cfg b/setup.cfg index 3f3faa8c..2ee0f499 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 \ No newline at end of file