mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-20 21:30:12 -05:00
chore: move scripts to scripts/
- Move Python and shell scripts (apply_migration, check_routes, run_tests, etc.) to scripts/ - Move setup-https-mkcert and start-https (bat/sh) to scripts/ - Update start-local-test.bat and start-local-test.sh
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env python
|
||||
"""Simple script to run tests and display results"""
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Add the project root to the path (parent of scripts/)
|
||||
_script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
_project_root = os.path.dirname(_script_dir)
|
||||
sys.path.insert(0, _project_root)
|
||||
os.chdir(_project_root)
|
||||
|
||||
import pytest
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("=" * 70)
|
||||
print("Running TimeTracker Tests")
|
||||
print("=" * 70)
|
||||
print()
|
||||
|
||||
# Run pytest with arguments
|
||||
exit_code = pytest.main([
|
||||
"tests/",
|
||||
"-v",
|
||||
"--tb=short",
|
||||
"-ra",
|
||||
"--color=no"
|
||||
])
|
||||
|
||||
print()
|
||||
print("=" * 70)
|
||||
print(f"Tests completed with exit code: {exit_code}")
|
||||
print("=" * 70)
|
||||
|
||||
sys.exit(exit_code)
|
||||
|
||||
Reference in New Issue
Block a user