view test/run_tests.py @ 373:fc1b89b09896

Added run test.py
author Windel Bouwman
date Fri, 21 Mar 2014 14:32:54 +0100
parents
children
line wrap: on
line source

import sys
import unittest

if sys.version_info.major < 3:
    print('Requires python 3 at least')
    sys.exit()

sys.path.insert(0, '../python')

loader = unittest.TestLoader()
suite = unittest.TestSuite()

for test in loader.discover('.'):
    suite.addTest(test)

unittest.TextTestRunner().run(suite)