From: Menno Smits Date: Thu, 21 Mar 2013 04:30:01 +0000 (+0000) Subject: Document the setup.py way of running the unit tests X-Git-Tag: 0.9.2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c57f00710091abf900ec526f47a34f63bd41ec4f;p=imapclient.git Document the setup.py way of running the unit tests --- diff --git a/HACKING b/HACKING index b6ed62e..6598bb9 100644 --- a/HACKING +++ b/HACKING @@ -42,8 +42,15 @@ a number of other parts of the code. These tests use the unittest2 package which is also included as the standard unittest package in Python 2.7 and 3.2. +To run the tests run: + + python setup.py test + +from the root of the package source. This will install any +dependencies required by the tests if they aren't already installed. + Where unittest2 is included in the standard library (eg. Python 2.7 -and 3.2) you can run all unit tests like this (starting from the root +and 3.2) you can also run all unit tests like this (from the root directory of the IMAPClient source): python -m unittest discover