| name | test |
| description | Run pytest test suite. Use to verify functionality after code changes or before commits. |
Run Tests
Execute pytest test suite.
Usage
python -m pytest tests/ -v
python -m pytest tests/test_matmul.py -v
python -m pytest tests/ -v --cov=src/pygpukit
python -m pytest tests/ -v -m "not slow"
Instructions
- Run the pytest command
- Report test results:
- Number of passed/failed/skipped tests
- Any failure details with tracebacks
- Suggestions for fixing failures
Test Categories
tests/ - Main test directory
- Unit tests for core functionality
- Integration tests for GPU operations
- Some tests require GPU and may be slow
Notes
- Run after lint and typecheck
- GPU tests require CUDA device
- Use
-v for verbose output
- Use
-x to stop on first failure