用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/NoeFontana/locus-tag --skill testing命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Testing |
| description | Run and evaluate the comprehensive test suite (Rust unit + Python integration). |
This skill guides you through the process of verifying the correctness and performance stability of the Locus library.
Use cargo-nextest for fast, parallel execution of the core library tests.
cargo nextest run --workspace --all-targets --all-features
Verify the zero-copy Python bindings and high-level API.
uv run pytest
Strict evaluation against standard datasets (ICRA 2020) to ensure no regressions in accuracy or latency.
To run the suite:
TRACY_NO_INVARIANT_CHECK=1 cargo test --release --test regression_icra2020 -- --test-threads=1
Updating Snapshots: If intentional changes have been made that alter the metrics, you must update the snapshots. Always use the release profile when updating snapshots to avoid extreme execution times:
# ICRA 2020 suite
TRACY_NO_INVARIANT_CHECK=1 INSTA_UPDATE=always cargo test --release --test regression_icra2020 -- --test-threads=1
# Render-Tag suite (if applicable)
TRACY_NO_INVARIANT_CHECK=1 LOCUS_HUB_DATASET_DIR=../../tests/data/hub_cache INSTA_UPDATE=always cargo test --release --test regression_render_tag -- --test-threads=1
# Distortion-aware suite (Brown-Conrady + Kannala-Brandt)
# One-time setup: sync the two configs into tests/data/hub_cache/ via
# uv run python tools/bench/sync_hub.py --configs \
# aprilgrid_distortion_brown_conrady_v1_1920x1080 aprilgrid_distortion_kannala_brandt_v1_1920x1080
# If sync_hub.py fails due to upstream dataset schema drift, fall back to
# direct parquet download via `huggingface_hub.hf_hub_download`.
TRACY_NO_INVARIANT_CHECK=1 LOCUS_HUB_DATASET_DIR=tests/data/hub_cache \
cargo insta test --release --all-features --features bench-internals \
--test regression_distortion_hub --review
Success Criteria:
proptest suites.performance_benchmark skill.unwrap() or panic!() in code paths identified as "hot loops".