用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/spiriMirror/libuipc --skill run-tests命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | run-tests |
| description | Run C++ and Python tests |
| disable-model-invocation | true |
Run C++ tests built with Catch2. Test sources are in apps/tests/, grouped by feature area.
Build the project first using the build command. Test binaries are output to <cmake-binary-directory>/<configuration>/bin/.
cd <cmake-binary-directory>/<configuration>/bin
./uipc_test_<name>
Test binary names follow the pattern uipc_test_<name> where <name> matches the CMake target name in apps/tests/. On Windows, the executable will have an .exe extension.
./uipc_test_<name> "<test-case-name>"
Catch2 tags are used to group tests (e.g., [geometry], [core]):
./uipc_test_<name> '[geometry]'
./uipc_test_<name> --log-level <level>
Levels: trace, debug, info, warn, error, critical, off.
./uipc_test_<name> --list-tests
Python tests live under python/tests/. Run them with the project venv after installing pyuipc (e.g. uv pip install -e . or a CMake build that installs into the venv).
To avoid uv re-syncing (and rebuilding) the project every time, use --no-sync:
uv run --no-sync pytest python/tests
Or run pytest from the venv directly:
.venv/bin/pytest python/tests
Without --no-sync, uv run syncs the environment first, which (re)builds and installs pyuipc from source.
| Directory | Area |
|---|---|
apps/tests/geometry/ | Geometry algorithms |
apps/tests/core/ | Core engine |
apps/tests/common/ | Common utilities |
apps/tests/backends/ | Backend tests |
apps/tests/sim_case/ | Simulation cases |
apps/tests/sanity_check/ | Sanity checks |