Skip to content

Commit 5a2fd63

Browse files
committed
Add instructions for running tests in DEVELOPER_GUIDE.md
Included a section detailing how to run tests from the python/cuml/ directory, including common pytest commands and options.
1 parent 2686f01 commit 5a2fd63

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

wiki/python/DEVELOPER_GUIDE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,23 @@ We support three main approaches for test input generation:
107107
- Make tests reproducible
108108
- Document test assumptions and requirements
109109

110+
### Running Tests
111+
Tests must be run from the `python/cuml/` directory or one of its subdirectories. First build the package, then execute tests.
112+
113+
```bash
114+
./build.sh
115+
cd python/cuml/
116+
pytest # Run all tests
117+
```
118+
119+
Common options:
120+
- `pytest cuml/tests/test_kmeans.py` - Run specific file
121+
- `pytest -k "test_kmeans"` - Run tests matching pattern
122+
- `pytest --run_unit` - Run only unit tests
123+
- `pytest -v` - Verbose output
124+
125+
Running pytest from outside the `python/cuml/` directory will result in import errors.
126+
110127
## Device and Host memory allocations
111128
TODO: talk about enabling RMM here when it is ready
112129

0 commit comments

Comments
 (0)