You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: restructure test suite into four distinct execution tiers (#128)
* fix(tests): add postgres dependencies to dev group for testing
Added psycopg[binary]>=3.1 and pgvector>=0.3 to dev dependency group to ensure all unit tests can run during development and CI.
This fixes the test collection error for test_postgres_backend.py while keeping postgres support optional for end users (via the pgvector optional dependency group).
* test: restructure test suite into four distinct execution tiers
* fix(tests): resolve linting errors and force isolated filesystem config in unit test fixture
* docs: standardize cli commands to use evolve entrypoint across all readmes
* test: dynamically inject E2E phoenix fixture URL
Copy file name to clipboardExpand all lines: README.md
+32-25Lines changed: 32 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,28 +125,35 @@ If you’re experimenting with Evolve or exploring on‑the‑job learning for a
125
125
126
126
### Running Tests
127
127
128
-
```bash
129
-
uv run pytest
130
-
```
131
-
132
-
#### Phoenix Sync Tests
133
-
134
-
Tests for the Phoenix trajectory sync functionality are **skipped by default** since they require familiarity with the Phoenix integration. To include them:
135
-
136
-
```bash
137
-
# Run all tests including Phoenix tests
138
-
uv run pytest --run-phoenix
139
-
140
-
# Run only Phoenix tests
141
-
uv run pytest -m phoenix
142
-
```
143
-
144
-
#### End-to-End (E2E) Low-Code Verification
145
-
146
-
To run the full end-to-end verification pipeline (Agent -> Trace -> Tip):
147
-
148
-
```bash
149
-
EVOLVE_E2E=true uv run pytest tests/e2e/test_e2e_pipeline.py -s
150
-
```
151
-
152
-
See [docs/LOW_CODE_TRACING.md](docs/LOW_CODE_TRACING.md#end-to-end-verification) for more details.
128
+
The test suite is organized into 4 cleanly isolated tiers depending on infrastructure requirements:
129
+
130
+
1.**Default Local Suite**
131
+
Runs both fast logic tests (`unit`) and filesystem script verifications (`platform_integrations`).
132
+
```bash
133
+
uv run pytest
134
+
```
135
+
136
+
2.**Unit Tests (Only)**
137
+
Fast, fully-mocked tests verifying core logic and offline pipeline schemas.
138
+
```bash
139
+
uv run pytest -m unit
140
+
```
141
+
142
+
3.**Platform Integration Tests**
143
+
Fast filesystem-level integration tests verifying local tool installation and idempotency.
144
+
```bash
145
+
uv run pytest -m platform_integrations
146
+
```
147
+
148
+
4.**End-to-End Infrastructure Tests**
149
+
Heavy tests that autonomously spin up a background Phoenix server and simulate full agent workflows.
150
+
```bash
151
+
uv run pytest -m e2e --run-e2e
152
+
```
153
+
*(See [docs/LOW_CODE_TRACING.md](docs/LOW_CODE_TRACING.md#end-to-end-verification) for more details).*
154
+
155
+
5.**LLM Evaluation Tests**
156
+
Tests needing active LLM inference to test resolution pipelines (requires LLM API keys).
0 commit comments