- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.py
More file actions
Latest commit
33 lines (27 loc) · 669 Bytes
/
Copy pathrun_tests.py
File metadata and controls
33 lines (27 loc) · 669 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
"""
Test runner for ModelSync
"""
importsubprocess
importsys
importos
defrun_tests():
"""Run all tests"""
print("🧪 Running ModelSync tests...")
# Change to project directory
os.chdir(os.path.dirname(os.path.abspath(__file__)))
# Run pytest
result=subprocess.run([
sys.executable, "-m", "pytest",
"tests/",
"-v",
"--tb=short",
"--color=yes"
], capture_output=False)
ifresult.returncode==0:
print("✅ All tests passed!")
else:
print("❌ Some tests failed!")
sys.exit(1)
if__name__=="__main__":
run_tests()