Skip to content

Commit 2df24ad

Browse files
committed
Add comprehensive integration and unit tests for CodeGraph
- Introduced integration tests for updating and syncing files, ensuring that new files and modifications are correctly indexed and counted. - Added unit tests for API resolvers, covering health checks, mutations for node operations, and batch operations. - Implemented tests for graph node store CRUD operations, including finding nodes by label and property. - Created tests for traversal functionalities, verifying shortest path calculations and neighbor fetching. - Developed parser tests for various programming languages, including handling malformed code gracefully. - Added vector tests for embedding generation, cache management, and eviction patterns. - Established helper functions for test setup, including temporary working directories and node creation.
1 parent 4c86495 commit 2df24ad

File tree

24 files changed

+6148
-257
lines changed

24 files changed

+6148
-257
lines changed

Cargo.lock

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ members = [
1212
"crates/codegraph-zerocopy",
1313
"crates/codegraph-lb",
1414
"crates/codegraph-api",
15-
"crates/core-rag-mcp-server"
16-
, "scripts"]
15+
"crates/core-rag-mcp-server",
16+
"scripts",
17+
"tests/integration"
18+
]
1719
default-members = [
1820
"crates/codegraph-core",
1921
"crates/codegraph-vector",

0 commit comments

Comments
 (0)