mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-04 05:15:10 +00:00
unilabos/test/experiments/prcxi_9320_with_res_test.json需要起的部分: "debug": true, "setup": false, "simulator": true
669 B
669 B
Liquid handling 集成测试
test_transfer_liquid.py 现在会调用 PRCXI 的 RViz 仿真 backend,运行前请确保:
- 已安装包含
pylabrobot、rclpy的运行环境; - 启动 ROS 依赖(
rviz可选,但是rviz_backend会创建 ROS 节点); - 在 shell 中设置
UNILAB_SIM_TEST=1,否则 pytest 会自动跳过这些慢速用例:
export UNILAB_SIM_TEST=1
pytest tests/devices/liquid_handling/test_transfer_liquid.py -m slow
如果只需验证逻辑层(不依赖仿真),可以直接运行 tests/devices/liquid_handling/unit_test.py,该文件使用 Fake backend,适合作为 CI 的快速测试。***