mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-05-06 03:27:53 -05:00
- Add tests/README.md with clear warnings and recovery instructions - Add tests/.gitkeep to ensure directory is always tracked - Protect 15 integration test files (~100KB valuable code) - Provide git recovery commands if accidentally deleted Addresses risk mitigation while keeping standard Python conventions.
🧪 TinyTorch Integration Tests
⚠️ CRITICAL DIRECTORY - DO NOT DELETE
This directory contains 15 integration test files that verify cross-module functionality across the entire TinyTorch system. These tests represent significant development effort and are essential for:
- Module integration validation
- Cross-component compatibility
- Real-world ML pipeline testing
- System-level regression detection
📁 Test Structure
test_*_integration.py- Cross-module integration teststest_utils.py- Shared testing utilitiestest_integration_report.md- Test documentation
🔧 Usage
# Run all integration tests
pytest tests/ -v
# Run specific module integration
pytest tests/test_tensor_activations_integration.py -v
🚨 Recovery Instructions
If accidentally deleted:
git checkout HEAD -- tests/
git status # Verify recovery
📊 Test Coverage
These integration tests complement the inline tests in each module's *_dev.py files, providing comprehensive system validation.