IsaacCapture / tests
AGENTS.md390 starsChanged 6 months agoApache-2.0View on GitHub
CRITICAL: Complete the mandatory AGENTS.md preflight in ../AGENTS.md before editing here. All pytest and Catch2/CTest suites 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…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- deps/cloudxr/webxr_client/AGENTS.mdAGENTS.md
- docs/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/sharpa_avatar/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, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
All pytest and Catch2/CTest suites live under this tree:
- 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 52
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 54
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 61
Add sources + leaf CMakeLists.txt (copy an existing sibling).
- Very specific: line 64
Do not colocate new pytest/Catch2 trees under src/ or examples/.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
All pytest and Catch2/CTest suites 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.
- 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.
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/.
Out of scope here
src/core/codegen/test_*.py— unittest, co-located with the generator.examples/oxr/python/test_*.py— standalone scripts for CloudXR GPU CI.- ROS2 Docker integration helpers under
examples/teleop_ros2/.../integration_tests/.
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.

