Spaces:
Sleeping
Sleeping
Commit ·
04a89d0
1
Parent(s): 2493f10
modified mkd for new tests functions"
Browse files- tests/tests.md +20 -8
tests/tests.md
CHANGED
|
@@ -1,14 +1,26 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
|
| 4 |
pip install pytest
|
| 5 |
|
| 6 |
-
|
| 7 |
pytest tests/ -v
|
| 8 |
|
| 9 |
-
|
| 10 |
-
pytest tests/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
# Run with coverage (optional)
|
| 13 |
-
pip install pytest-cov
|
| 14 |
-
pytest tests/ -v --cov=.
|
|
|
|
| 1 |
+
# How to run the tests
|
| 2 |
|
| 3 |
+
#### Install pytest if not already installed
|
| 4 |
pip install pytest
|
| 5 |
|
| 6 |
+
#### Run all tests
|
| 7 |
pytest tests/ -v
|
| 8 |
|
| 9 |
+
#### Run specific test file (eg test_core_functions.py)
|
| 10 |
+
pytest tests/test_core_functions.py -v
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
#Which tests to run:
|
| 14 |
+
|
| 15 |
+
### Test utility functions (fast)
|
| 16 |
+
pytest tests/test_core_functions.py -v
|
| 17 |
+
|
| 18 |
+
### Integration tests (slow, run occasionally):
|
| 19 |
+
|
| 20 |
+
- Without LLM tests
|
| 21 |
+
pytest tests/test_integration.py -v
|
| 22 |
+
|
| 23 |
+
- With LLM tests (needs token)
|
| 24 |
+
HF_TOKEN=your_token pytest tests/test_integration.py -v
|
| 25 |
+
|
| 26 |
|
|
|
|
|
|
|
|
|