Skip to content

Commit 7201aa6

Browse files
committed
Add Cursor rules to run tests
1 parent 9b7697c commit 7201aa6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.cursor/rules/run-tests.mdc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
description:
3+
globs:
4+
alwaysApply: true
5+
---
6+
- Unit tests are in ./tests/unit_tests, integ tests are in ./tests/integ_tests, API tests are in ./tests/api_tests/v1/tests/api_tests
7+
- If you add new tests, make sure to run them and verify they pass.
8+
- To run unit and integ tests, make sure working directory is repo root and set PYTHONPATH=./src.
9+
- If running integ or API tests, make sure Vespa is running vis docker ps. If not running, use
10+
python scripts/vespa_local/vespa_local.py full_start to run Vespa first.
11+
- To run API tests, first run Marqo API in one process by running src/marqo/tensor_search/api.py using PYTHONPATH=./src MARQO_ENABLE_BATCH_APIS=true MARQO_MODE=COMBINED MARQO_MODELS_TO_PRELOAD="[]". While the API is running, run API tests via pytest using PYTHONPATH=./tests/api_tests/v1/tests/api_tests . If Marqo API fails to run, stop. Terminate Marqo API when done.

0 commit comments

Comments
 (0)