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
- These test reference guide lookups across different projects and components
38
+
- Each test triggers indexing to ensure reference guides are available
39
+
32
40
## Running Tests
33
41
34
42
### Fast Tests Only (Default in CI)
35
43
```bash
36
-
# Runs only non-slow tests
44
+
# Runs only non-slow tests (1 fast test + 12 unit tests)
37
45
pytest tests/docs_mcp/ -m "not slow"
38
46
```
39
47
@@ -64,10 +72,18 @@ Even with the minimal test configuration (1 repository, limited docs), the first
64
72
65
73
This is too slow for CI, so we mark these tests as `slow` and skip them in CI. The minimal configuration is still valuable for local development where you want to test the indexing functionality without waiting for all 12 repositories.
66
74
75
+
## Test Files
76
+
77
+
-`test_docs_mcp.py`: Core documentation server tests (search, list_projects, etc.)
78
+
-`test_docs_mcp_reference_guide.py`: Comprehensive tests for `get_reference_guide` tool
79
+
-`test_data.py`: Unit tests for utility functions (fast, no indexing required)
80
+
-`config.yaml`: Minimal test configuration with 1 repository
81
+
-`README.md`: This file
82
+
67
83
## Notes
68
84
69
-
- The minimal test configuration is set via `HOLOVIZ_MCP_DEFAULT_DIR` environment variable in the test file
70
-
- Fast tests verify core functionality without triggering indexing
71
-
- Slow tests verify the complete indexing and search pipeline
85
+
- The minimal test configuration is set via `HOLOVIZ_MCP_DEFAULT_DIR` environment variable in test files
86
+
- Fast tests (2 total) verify core functionality without triggering indexing
87
+
- Slow tests (24 total) verify the complete indexing and search pipeline
72
88
- First run will clone the panel repository and build the index (2-5 minutes)
73
89
- Subsequent runs reuse the cached index (~30 seconds)
0 commit comments