IsaacCapture / tests
AGENTS.md438 starsChanged 31 days agoApache-2.0View on GitHub
CRITICAL: Complete the mandatory AGENTS.md preflight in ../AGENTS.md before editing here. Pytest and Catch2/CTest suites generally live under this tree: Organize by product area, mirroring src/ and examples/: Shared C++ fixtures (not executables) live under tests/cpp/viz/support/ (viz::test_support, viz::layers_testing). - Catch2 executable names stay stable: schema_tests, viz_core_tests, viz_layers_tests, … CI globs viz_*_tests for GPU packaging. - CTest name prefixes stay stable: schema_*, retargeting_*, viz_python_*, etc. - Catch2 tags → CTest labels via ADD_TAGS_AS_LABELS (unit, gpu, xr). - Each leaf directory has…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- NVIDIA/IsaacTeleopword for word, first seen Oct 14, 2026
Other versions1 project uses a version of this.
Word for word · 1
- NVIDIA/IsaacTeleop★ 438100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- deps/cloudxr/webxr_client/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- examples/camera_streamer/AGENTS.mdAGENTS.md
- examples/egocap/AGENTS.mdAGENTS.md
- examples/teleop_ros2/AGENTS.mdAGENTS.md
- src/core/AGENTS.mdAGENTS.md
- src/core/codegen/AGENTS.mdAGENTS.md
- src/core/deviceio_base/AGENTS.mdAGENTS.md
- src/core/deviceio_session/AGENTS.mdAGENTS.md
- src/core/deviceio_trackers/AGENTS.mdAGENTS.md
- src/core/live_trackers/AGENTS.mdAGENTS.md
- src/core/log_bridge/AGENTS.mdAGENTS.md
- src/core/replay_trackers/AGENTS.mdAGENTS.md
- src/core/schema/AGENTS.mdAGENTS.md
- src/plugins/sensing/AGENTS.mdAGENTS.md
- src/plugins/sharpa_avatar/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/common/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/full_body/checker/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/full_body/oracle/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/hand/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/hand/checker/AGENTS.mdAGENTS.md
- src/python/isaaccapture/logging_config/AGENTS.mdAGENTS.md
- src/viz/AGENTS.mdAGENTS.md
- .cursor/rules/cmake-structure.mdcCursor rule
- cmake-structureSkill
- rebot-orin-setupSkill
- rebot-orin-setupSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 45
After updating CloudXR import or mock-patch paths for the isaaccapture package, run ruff format on the touched tests.
- Very specific: line 50
Use raw strings for regular-expression patterns passed to
pytest.raises(..., match=...). - Very specific: line 55
Use repo_paths.py for paths into src/python/ or examples/ from conftest.py — do not hard-code parents[N] against repo depth.
- Very specific: line 57
If CMake under examples/ reads a file under tests/, guard it on the in-tree configure: standalone wheel builds use the example as …
- Very specific: line 70
Add sources + leaf CMakeLists.txt (copy an existing sibling).
- Very specific: line 73
Do not colocate new pytest/Catch2 trees under src/ or examples/.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!--
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->Agent notes — tests/
CRITICAL: Complete the mandatory AGENTS.md preflight in
../AGENTS.md before editing here.
Layout
Pytest and Catch2/CTest suites generally live under this tree:
tests/
cpp/ ← Catch2 executables (one target per module leaf)
python/ ← pytest suites (one pyproject.toml per leaf)Organize by product area, mirroring src/ and examples/:
| Area | C++ path | Python path |
| core | tests/cpp/core/<module>/ | tests/python/core/<module>/ |
| viz | tests/cpp/viz/<module>/ | tests/python/viz/ |
| plugins | tests/cpp/plugins/<plugin>/ | — |
| examples | — | tests/python/examples/<example>/ |
Shared C++ fixtures (not executables) live under tests/cpp/viz/support/
(viz::test_support, viz::layers_testing).
Naming invariants (CI depends on these)
- Catch2 executable names stay stable:
schema_tests,viz_core_tests,viz_layers_tests, … CI globsviz_*_testsfor GPU packaging. - CTest name prefixes stay stable:
schema_*,retargeting_*,viz_python_*, etc. - Catch2 tags → CTest labels via
ADD_TAGS_AS_LABELS(unit,gpu,xr).
Python conventions
- Each leaf directory has its own
pyproject.tomlsouv runresolves deps locally (mujoco pins, asyncio, cupy extras, grounding/wuji extras). - After updating CloudXR import or mock-patch paths for the
isaaccapturepackage, runruff formaton the touched tests; longer paths can change multiline layout. - Format changed Python tests before staging; if pre-commit rewrites a file, restage the result and rerun the full hook set.
- Use raw strings for regular-expression patterns passed to
pytest.raises(..., match=...); Ruff rejects escaped metacharacters in ordinary strings. - CTest runs one
pytestinvocation pertest_*.pywithWORKING_DIRECTORYset to that leaf. - Use
repo_paths.pyfor paths intosrc/python/orexamples/fromconftest.py— do not hard-codeparents[N]against repo depth. - If CMake under
examples/reads a file undertests/, guard it on the in-tree configure: standalone wheel builds use the example asCMAKE_SOURCE_DIR, not the repo root. - A stand-in child process must stay alive on its own (
python -m <builtin>exits at once), andPopen()can return while the child's/proc/<pid>/cmdlinestill reads empty or the parent's argv: wait for the child's own argv before any check, including one that expects no match, which either stale value passes without testing anything (python/core/cloudxr/test_background.pydoes both).
Adding tests
- Pick the matching
tests/{cpp,python}/<area>/<module>/leaf (create it if new). - Add sources + leaf
CMakeLists.txt(copy an existing sibling). - Wire the leaf from the parent
CMakeLists.txtunder the sameBUILD_*gates as before (e.g. viz tests requireBUILD_VIZ). - Do not colocate new pytest/Catch2 trees under
src/orexamples/.
- FlatBuffers generated
VT_*constants are vtable offsets, not schema field IDs. Compare them with(field_id + 2) * 2, as the existing schema tests do.
Out of scope here
- Vehicle teleop worker tests belong in
examples/vehicle_teleop/tests/, alongside the example they exercise. src/core/codegen/test_*.py— unittest, co-located with the generator.tests/python/xr_runtime/— standalone scripts for CloudXR GPU CI, not pytest: nopyproject.tomlor CTest wiring.scripts/run_tests_with_cloudxr.shlists the ones CI runs.- ROS2 Docker integration helpers under
examples/teleop_ros2/.../integration_tests/. scripts/sbom/tests/— the SBOM collector's tests, run from its own uv project.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

