feat: Add test scripts and runner for TheChart application

- Created demo_failing_test.py to demonstrate pre-commit blocking with a failing test.
- Added run_tests.py for executing all tests with coverage reporting.
- Introduced test.py as a quick test runner for the application, providing coverage reports and user-friendly output.
This commit is contained in:
William Valentin
2025-07-28 18:21:40 -07:00
parent c20c4478a6
commit 4c7da343eb
7 changed files with 688 additions and 437 deletions

View File

@@ -63,4 +63,10 @@ shell: ## Open a shell in the local environment
requirements: ## Export the requirements to a file
@echo "Exporting requirements to requirements.txt..."
poetry export --without-hashes -f requirements.txt -o requirements.txt
.PHONY: install build attach deploy run start stop test lint format shell requirements help
commit-emergency: ## Emergency commit (bypasses pre-commit hooks) - USE SPARINGLY
@echo "⚠️ WARNING: Emergency commit bypasses all pre-commit checks!"
@echo "This should only be used in true emergencies."
@read -p "Enter commit message: " msg; \
git add . && git commit --no-verify -m "$$msg"
@echo "✅ Emergency commit completed. Please run tests manually when possible."
.PHONY: install build attach deploy run start stop test lint format shell requirements commit-emergency help