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
Copy file name to clipboardExpand all lines: .agents/context/testing.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,20 @@
1
1
# Testing Instructions
2
2
3
-
Cypress 9 for E2E and visual regression. No Python unit tests — validation is via demo scripts and Cypress.
3
+
Two layers: **pytest** for Python unit tests (pure functions, server utils, window/env lifecycle) and **Cypress 9** for E2E and visual regression. Demo scripts remain useful for manual/visual validation.
4
4
5
-
## Run Tests
5
+
## Run Python Tests (pytest)
6
+
7
+
```bash
8
+
pip install -r test-requirements.txt # includes pytest, pytest-cov
9
+
pytest # runs the tracked suite under py/tests/
10
+
pytest -m "not server"# skip tests that need a live server (CI default)
11
+
```
12
+
13
+
Config lives in `pyproject.toml` (`[tool.pytest.ini_options]`): discovery is scoped to
14
+
`py/tests/` and `pythonpath = ["py"]` makes `import visdom` work without an editable install.
15
+
Experimental `test_*.py` scripts in the repo root (and `test/`) are intentionally out of scope.
16
+
17
+
## Run E2E / Visual Tests (Cypress)
6
18
7
19
```bash
8
20
visdom -port 8098 -env_path /tmp # Always start fresh server first
@@ -24,9 +36,19 @@ Always use port `8098` and `-env_path /tmp` for isolation.
0 commit comments