Skip to content

feat: add mvtbtool --test smoke test, fix silent Open3D banner skip - #62

Merged
petercorke merged 1 commit into
mainfrom
feat/mvtbtool-test-flag
Aug 10, 2026
Merged

petercorke merged 1 commit into
mainfrom
feat/mvtbtool-test-flag

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

  • Add --test flag to mvtbtool, mirroring RTB's --test flag on rtbtool (same shape, same rationale): a non-interactive environment smoke test that prints package versions, exercises one real numeric code path per package (Image.smooth() for OpenCV, PointCloud.voxel_grid() for Open3D), and exits 0/1 instead of dropping into an interactive IPython shell. Not a substitute for the pytest suite — a fast "did this environment come together correctly" check.
  • Fix make_banner() silently omitting Open3D from the version line when it isn't installed — now prints Open3D==not installed explicitly, in both the banner and --test output, instead of just leaving it out.

Test plan

  • --test verified in an env without Open3D: OpenCV check passes, Open3D check reports FAIL with a clear reason, exit code 1
  • --test verified in an env with Open3D 0.19.0 installed: both checks pass, exit code 0
  • New tests/test_bin.py::TestMvtbtool::test_smoke_test covers both cases, gated on local Open3D availability
  • Full suite: 774 passed, 92 skipped, no regressions

Mirrors rtbtool's --test flag (see RTB's feat/rtbtool-smoke-test): a
non-interactive check that prints package versions and exercises one
real numeric code path per package (Image.smooth for OpenCV,
PointCloud.voxel_grid for Open3D), exiting 0/1 instead of dropping
into IPython.

Also fixes make_banner() silently omitting Open3D from the version
line when it's not installed -- now shows "Open3D==not installed"
instead, in both the banner and --test output.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 2 high

Alerts:
⚠ 2 issues (≤ 0 issues of at least minor severity)

Results:
2 new issues

Category Results
ErrorProne 2 high

View in Codacy

🟢 Metrics 12 complexity · 0 duplication

Metric Results
Complexity 12
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit a832c59 into main Aug 10, 2026
17 of 18 checks passed
@petercorke
petercorke deleted the feat/mvtbtool-test-flag branch August 10, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant