test_jira_endpoints.py•648 B
import os
import sys
import unittest
# Add the src directory to Python path for src layout
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
src_path = os.path.join(project_root, 'src')
sys.path.insert(0, src_path)
if __name__ == '__main__':
# Discover and run tests
loader = unittest.TestLoader()
start_dir = os.path.join(os.path.dirname(__file__), 'endpoint_tests')
suite = loader.discover(start_dir, pattern='test_*.py')
runner = unittest.TextTestRunner(verbosity=2)
result = runner.run(suite)
# Exit with non-zero code if tests failed
sys.exit(not result.wasSuccessful())