-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.py
More file actions
33 lines (28 loc) · 803 Bytes
/
Copy pathrun_tests.py
File metadata and controls
33 lines (28 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
"""
Quick test runner - runs infrastructure tests to verify everything works.
"""
import subprocess
import sys
def main():
print("=" * 70)
print("Running Infrastructure Tests")
print("=" * 70)
print()
# Run pytest with verbose output
result = subprocess.run(
[sys.executable, "-m", "pytest", "tests/test_infra.py", "-v", "--tb=short"],
capture_output=False
)
print()
print("=" * 70)
if result.returncode == 0:
print("ALL TESTS PASSED ✓")
print("Infrastructure is good. Ready for A2A tests.")
else:
print("SOME TESTS FAILED ✗")
print("Fix the issues before proceeding.")
print("=" * 70)
return result.returncode
if __name__ == "__main__":
sys.exit(main())