""" Test runner for catapult """
import os
import unittest

from catapult.runner import CatapultTestRunner


if __name__ == '__main__':
    tests_dir = os.path.dirname(os.path.abspath(__file__))
    loader = unittest.TestLoader()
    tests = loader.discover(tests_dir, pattern='*test*.py')
    runner = CatapultTestRunner(fmt='tap-j')
    # runner = CatapultTestRunner(fmt='tap-y')
    # runner = CatapultTestRunner(fmt='tap')
    runner.run(tests)
