Files
molecule-core/tests/run
T
2013-03-21 12:07:27 +00:00

24 lines
460 B
Python
Executable File

#!/usr/bin/python2
# -*- coding: utf-8 -*-
import sys
import unittest
sys.path.insert(0,'.')
sys.path.insert(0,'..')
from tests import version, utils, specs
rc = 0
# Add to the list the module to test
mods = [version, utils, specs]
tests = []
for mod in mods:
tests.append(unittest.TestLoader().loadTestsFromModule(mod))
result = unittest.TextTestRunner(verbosity = 1).run(unittest.TestSuite(tests))
if result.errors:
rc = 1
raise SystemExit(rc)