Add "test" command to setup.py
"python setup.py test" will now run the complete test suite. Remove the previous ./test command. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
@ -9,7 +9,8 @@ How to run the tests
|
||||
will change the account and upload/delete/modify it's contents and
|
||||
folder structure. So don't use a real used account here...
|
||||
|
||||
- Execute './test'
|
||||
- go to the top level dir (one above this one) and execute:
|
||||
'python setup.py test'
|
||||
|
||||
System requirements
|
||||
===================
|
||||
|
10
test/test
10
test/test
@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
import logging
|
||||
from OLItest import OLITextTestRunner, TestLoader, OLITestLib
|
||||
|
||||
if __name__ == '__main__':
|
||||
logging.basicConfig(format='%(message)s')
|
||||
# set credentials and OfflineImap command to be executed:
|
||||
OLITestLib(cred_file='./credentials.conf', cmd='../offlineimap.py')
|
||||
suite = TestLoader().discover('./tests')
|
||||
OLITextTestRunner(verbosity=2).run(suite)
|
@ -17,11 +17,7 @@ import random
|
||||
import unittest
|
||||
import logging
|
||||
import os, sys
|
||||
# Insert ".." into the python search path to get OLItest
|
||||
cmd_folder = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
if cmd_folder not in sys.path:
|
||||
sys.path.insert(0, cmd_folder)
|
||||
from OLItest import OLITestLib
|
||||
from test.OLItest import OLITestLib
|
||||
|
||||
def setUpModule():
|
||||
logging.info("Set Up test module %s" % __name__)
|
||||
|
Reference in New Issue
Block a user