feat(automation): JSON-RPC dispatcher envelope + version + error model

This commit is contained in:
SoftFever
2026-06-03 01:49:49 +08:00
parent 94c356845e
commit aac14ae161
4 changed files with 184 additions and 0 deletions
+2
View File
@@ -4,9 +4,11 @@ add_executable(${_TEST_NAME}_tests
automation_tests.cpp
test_serializer.cpp
test_locator.cpp
test_dispatcher.cpp
MockUiBackend.cpp
${CMAKE_SOURCE_DIR}/src/slic3r/GUI/Automation/WidgetSerializer.cpp
${CMAKE_SOURCE_DIR}/src/slic3r/GUI/Automation/Locator.cpp
${CMAKE_SOURCE_DIR}/src/slic3r/GUI/Automation/JsonRpcDispatcher.cpp
)
target_link_libraries(${_TEST_NAME}_tests test_common Catch2::Catch2WithMain nlohmann_json)
# The nlohmann_json INTERFACE target only exposes deps_src/nlohmann on the include