Files
cs249r_book/tools/scripts/testing/run_tests.py
Vijay Janapa Reddi 4cbc8b6f8b Reorganize and standardize scripts directory structure and naming
🗂️ Major reorganization:
- Organized scripts into logical categories: build/, content/, maintenance/, testing/, utilities/, docs/
- Moved 25+ scripts from flat structure to categorized directories
- Added category-specific README files with usage examples

📝 Standardized script naming:
- Fixed abbreviations: fn_cnt.sh → count_footnotes.sh, fixbib.py → fix_bibliography.py
- Applied consistent verb_noun patterns: section_id_manager.py → manage_section_ids.py
- Improved clarity: ascii_checker.py → check_ascii.py, fixtitle.py → fix_titles.py
- Distinguished similar tools: footnote_cnt.sh → analyze_footnotes.sh

📚 Updated documentation:
- Comprehensive main README with usage examples for all categories
- Individual README files for each script category
- Updated DEVELOPMENT.md with new scripts organization section
- Synchronized all script references in documentation

🔗 Integration updates:
- Updated Makefile to use new script paths
- Fixed pre-commit hook references to moved scripts
- Maintained all existing functionality while improving organization

The scripts directory now follows professional standards with intuitive categorization,
consistent naming conventions, and comprehensive documentation.
2025-07-25 11:56:50 -04:00

34 lines
811 B
Python

#!/usr/bin/env python3
"""
Test runner for section_id_manager.py
Run this script to execute all tests.
"""
import sys
import os
import subprocess
def run_tests():
"""Run the test suite."""
print("🧪 Running Section ID Manager Tests...")
print("=" * 50)
# Get the directory where this script is located
script_dir = os.path.dirname(os.path.abspath(__file__))
# Run the tests
result = subprocess.run([
sys.executable, 'test_section_id_manager.py'
], cwd=script_dir)
print("\n" + "=" * 50)
if result.returncode == 0:
print("✅ All tests passed!")
else:
print("❌ Some tests failed!")
print("Check the output above for details.")
return result.returncode
if __name__ == '__main__':
sys.exit(run_tests())