Running Tests

SkillDev tools

Run the in-crate unit tests for mujoco-rs. Use this when asked to run tests or verify that changes work correctly.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Running Tests skill

What this skill tells your AI

The instructions your AI receives, as published by davidhozic/mujoco-rs in .claude/skills/test/SKILL.md and read by ahel’s review.

Run all tests (unit tests inside src/, integration tests in tests/, and doctests).

  1. Check Cargo.toml for the current MuJoCo version (look for +mj-X.Y.Z in the package version). Then find the matching mujoco-X.Y.Z/ directory at the repository root.

  2. Run all tests (replace X.Y.Z with the version found in step 1):

export MUJOCO_DYNAMIC_LINK_DIR=$(realpath mujoco-X.Y.Z/lib) && export LD_LIBRARY_PATH=$(realpath mujoco-X.Y.Z/lib/) && cargo test --features renderer

  1. Verify that the exit code is 0 (success) - check the terminal output for errors.

[!NOTE]

  • To run a single test: cargo test --features renderer <test_name>.
  • To run tests in release mode add --release.
  • Read Cargo.toml [features] for available features. Viewer/renderer features are opt-in (not in defaults).

Signals

GitHub stars
78
Forks
10
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
test-davidhozic
Source
github.com/davidhozic/mujoco-rs