Spaces:
Sleeping
Sleeping
File size: 626 Bytes
cce43bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
"""
Test runner for API Client unit tests
"""
import sys
import os
# Add the current directory to path so we can import api_client
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import pytest
if __name__ == "__main__":
# Run the tests with verbose output and coverage
exit_code = pytest.main([
"test_api_client.py",
"-v", # Verbose output
"--tb=short", # Short traceback format
"--durations=10", # Show 10 slowest tests
"-x", # Stop on first failure
])
print(f"\nTest execution completed with exit code: {exit_code}")
sys.exit(exit_code)
|