Skip to content

Contributing Adding Tests

Devrajsinh Gohil edited this page Aug 30, 2026 · 2 revisions

Contributing: Adding Tests

All pull requests must include unit and integration tests.


C++ Core Tests

Add new test cases in Phase1/tests/unit/:

  1. Include <cassert> and test assertions.
  2. Register the executable in Phase1/CMakeLists.txt with add_executable and add_test.
  3. Run ctest -R <your_test_name>.

Python Adapter Parity Tests

Add test functions in Phase1/tests/test_langgraph_parity.py:

  1. Construct the LangGraph StateGraph.
  2. Compile with agentmesh_adapter.compile(builder).
  3. Assert state dictionary matching expected results.
  4. Run PYTHONPATH=python_adapter uv run python tests/test_langgraph_parity.py.

Clone this wiki locally