‹ 首页

run-tests

@isaac-sim · 收录于 昨天 · 上游提交 昨天

Runs the Isaac Lab-Arena pytest suite across its three required phases (no-cameras, with-cameras, with-subprocess) inside the running isaaclab_arena Docker container. Use when the user asks to run the tests, test their changes, verify the test suite passes, check whether a change broke anything (e.g. "did I break anything", "do the tests still pass", "is everything still working"), run only one specific phase (e.g. "run Phase 1", "run only the no-camera tests", "skip the camera and subprocess tests"), or run coverage for a specific module.

适合你,如果你需要快速验证 Isaac Lab-Arena 的代码变更是否通过测试

/ 通过 npx 安装 校验哈希
npx oh-my-skill add isaac-sim/isaaclab-arena/run-tests
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- isaac-sim/isaaclab-arena/run-tests
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify isaac-sim/isaaclab-arena/run-tests
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
500GitHub stars
~718上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 62a5339 · 表述以原文为准
它做什么

装上后,Claude 会在 Docker 容器中运行 Isaac Lab-Arena 测试套件的三个阶段(无相机、有相机、有子进程),并依次报告结果。若某阶段失败,会停止并告知第一个失败的测试文件、函数和错误。

什么时候触发

当你说“运行测试”、“检查是否弄坏了什么”、“只运行 Phase 1”等要求时触发。

装好后可以这样说
Claude 会依次执行三个阶段的测试。
只运行无相机、无子进程的测试。
Claude 运行完整测试并报告结果。
技能原文 SKILL.md作者撰写 · Apache-2.0 · 62a5339

Run Tests

Default (no argument): run all three phases in order. phase1: no-cameras, no-subprocess only. phase2: with-cameras only. phase3: with-subprocess only.

The three phases run mutually exclusive sets of tests (selected via different pytest marker filters) and must be invoked separately. For a full pre-PR run, every phase must pass before moving on to the next.

All commands run inside the already-running container via docker exec. Each clone of the repo on the host system has its own container, so at the start of a session resolve the one mounting this clone into ARENA_CONTAINER (empty = none running — use the dev-container skill first):

ARENA_CONTAINER=$(docker ps --filter "volume=$(git rev-parse --show-toplevel)" --format '{{.Names}}' | head -1)

Run the phase commands below in that same shell so $ARENA_CONTAINER stays set (or substitute the literal name).

Phase 1 — no cameras, no subprocess

The fastest of the three. Useful on its own when iterating on changes that don't touch rendering or subprocess paths.

docker exec "$ARENA_CONTAINER" su $(id -un) -c \
  "cd /workspaces/isaaclab_arena && \
   /isaac-sim/python.sh -m pytest -sv \
   -m 'not with_cameras and not with_subprocess' isaaclab_arena/tests"
Phase 2 — with cameras
docker exec "$ARENA_CONTAINER" su $(id -un) -c \
  "cd /workspaces/isaaclab_arena && \
   /isaac-sim/python.sh -m pytest -sv \
   -m 'with_cameras and not with_subprocess' isaaclab_arena/tests"
Phase 3 — with subprocess
docker exec "$ARENA_CONTAINER" su $(id -un) -c \
  "cd /workspaces/isaaclab_arena && \
   /isaac-sim/python.sh -m pytest -sv \
   -m 'with_subprocess' isaaclab_arena/tests"
Run a single test file or function
# single file
docker exec "$ARENA_CONTAINER" su $(id -un) -c \
  "cd /workspaces/isaaclab_arena && \
   /isaac-sim/python.sh -m pytest isaaclab_arena/tests/test_asset_registry.py"

# single function
docker exec "$ARENA_CONTAINER" su $(id -un) -c \
  "cd /workspaces/isaaclab_arena && \
   /isaac-sim/python.sh -m pytest isaaclab_arena/tests/test_asset_registry.py::test_default_assets_registered"
On failure
  1. Report the failing phase and the first failing test (file, function, and one-line error).
  2. Stop. Do not run later phases until the failure is investigated.
  3. If the failure looks unrelated to recent changes, run the same test in isolation to confirm.

A run is "all green" only when all three phases pass with no failures or errors.

按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。