| name | test |
| description | Run unified test suite for BVR Sim. One-click testing with automatic build and validation. |
BVR Sim Test Suite
Run comprehensive tests automatically from the project root.
Quick Start
| Command | Description |
|---|
python run_tests.py | Run full test suite (build + all tests) |
What Gets Run
The unified test suite (run_tests.py) does:
- Build C++ components (Windows:
build_windows.bat, Linux: build_linux.sh)
- Import local
bvr_sim package directly (no pip install)
- C++ unit tests - Low-level C++ functionality
- C3Utils unit tests - C3Utils library tests
- C++ core tests - C++ backend validation
- Python core tests - Python backend validation
Benefits
- Faster test runs - No pip install overhead, direct import of local changes
- Instant feedback - Test local modifications immediately after build
- Simple workflow - Single command from project root
Requirements
- Windows: MSVC build tools
- Linux: GCC or Clang
- Python 3.8+
Usage
python run_tests.py
Troubleshooting
Use linux bash param style (-d), rather than dos style (/d).
Incorrect:
cd /d G:/bvr_sim && python run_tests.py
Correct (relative path):
python run_tests.py
Common Issues
- Build fails: Check compiler is installed and in PATH
- Import errors: Ensure
build_windows.bat completed successfully (looks for bvr_sim_cpp.pyd in bvr_sim/)
- C++ tests fail: Verify Eigen and pybind11 were downloaded during build