单元测试
现有测试
- 框架使用 atframe_utils 的私有测试框架(
CASE_TEST,非 GTest); - 组件测试在
src/component/test/(如ItemAlgorithmTest背包格子算法); - 构建:
-DPROJECT_ENABLE_UNITTEST=YES后用 CTest 运行:
cmake --build <BUILD_DIR> --config Debug
ctest --test-dir <BUILD_DIR> -C Debug --output-on-failure
Windows 下若测试启动失败(DLL 找不到),检查 PATH 是否包含依赖 DLL 目录(见
.agents/skills/testing/)。