Commit c89c1f4
committed
Phase 5b: CLI integration tests (27) + Python bindings (797 LOC)
gp-cli integration tests (939 LOC, 27 tests):
- Full binary-level testing via std::process::Command
- Each test in isolated tempdir for parallelism
- Coverage: init, add-drawer, search (TF-IDF ranking), navigate,
status, wing/room CRUD, kg add/query, export/import, pheromones,
agents, help/version, full end-to-end workflow
- Uses tempfile crate for test isolation
gp-python bindings (797 LOC, 22 methods):
- Palace class with Mutex<SendablePalace> for thread safety
- Full API: add_drawer, search, navigate, status, wing/room CRUD,
knowledge graph, similarity graph, pheromones, export/import
- TF-IDF vocabulary rebuild on load (same as CLI)
- Auto-save after every mutation
- Edition 2021 for PyO3 0.22 compat (unsafe-op-in-unsafe-fn)
- cargo check + clippy -D warnings: zero issues
Total: 707 tests, zero failures, zero clippy warnings.
15 Rust crates in workspace (was 13).1 parent 9699974 commit c89c1f4
5 files changed
Lines changed: 1670 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments