mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Add support for a dir of client tests
This commit is contained in:
parent
77d1213781
commit
6c0c05c523
@ -12,9 +12,12 @@ TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
|
|||||||
|
|
||||||
def run_integration_tests():
|
def run_integration_tests():
|
||||||
with TestDaemon():
|
with TestDaemon():
|
||||||
loader = saltunittest.TestLoader()
|
moduleloader = saltunittest.TestLoader()
|
||||||
tests = loader.discover(os.path.join(TEST_DIR, 'integration', 'modules'), '*.py')
|
moduletests = moduleloader.discover(os.path.join(TEST_DIR, 'integration', 'modules'), '*.py')
|
||||||
saltunittest.TextTestRunner(verbosity=1).run(tests)
|
saltunittest.TextTestRunner(verbosity=1).run(moduletests)
|
||||||
|
clientloader = saltunittest.TestLoader()
|
||||||
|
clienttests = clientloader.discover(os.path.join(TEST_DIR, 'integration', 'client'), '*.py')
|
||||||
|
saltunittest.TextTestRunner(verbosity=1).run(clienttests)
|
||||||
|
|
||||||
def run_unit_tests():
|
def run_unit_tests():
|
||||||
loader = saltunittest.TestLoader()
|
loader = saltunittest.TestLoader()
|
||||||
|
Loading…
Reference in New Issue
Block a user