mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-06-02 18:05:57 -05:00
REMOVED (Mock-based tests that duplicate inline tests): • test_activations.py - Used MockTensor instead of real Tensor • test_layers.py - Used MockTensor instead of real Tensor • test_networks.py - Used MockTensor/MockLayer instead of real components • test_cnn.py - Used MockTensor instead of real Tensor • test_dataloader.py - Used MockTensor/MockDataset instead of real components ADDED (Real integration tests with actual TinyTorch components): • integration/test_tensor_activations.py - Tests real Tensor ↔ Activations integration • integration/test_layers_networks.py - Tests real Dense ↔ Sequential/MLP integration • e2e/ directory structure for end-to-end tests RESULT: • Reduced test count from 209 → 70 (removed 139 redundant mock-based tests) • All 70 remaining tests use real components for true integration testing • Clear separation: inline tests (component validation) vs integration tests (cross-module) • Better QA structure following proper testing pyramid This follows QA best practices: since all modules are working and building on each other, integration tests should use real components, not mocks. Mocks were preventing us from catching actual integration issues.