Repository navigation
test: add smoke test that runs every figure script under figures/code - #62
Open
petercorke wants to merge 1 commit into
Open
petercorke wants to merge 1 commit into
petercorke wants to merge 1 commit into
Conversation
Slow test (--runall). Runs each fig*.py and box_*.py headless in a subprocess. 176 scripts that fail today are listed in figures_skiplist.yaml. run_example.py now sets sys.argv[0] so rvcprint can name its output. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
tests/test_figures.py, a slow test (pytest --runall) that runs everyfig*.pyandbox_*.pyunderfigures/code/headless, each in its own subprocess with a throwaway working directory so no PDFs land in the repo.tests/figures_skiplist.yamlso the test passes now and catches new breakage. Causes seen: matplotlib API drift, missing optional packages such as pyvista, and old scripts using helpers that no longer exist. Fixes will follow in separate PRs, removing entries from the skiplist as they go.tests/run_example.pynow setssys.argv[0]to the script path, becauservcprintnames its output from it.Tested with RTB 1.5.0 and MVTB origin/main (b967cb3d) in a throwaway venv: 123 passed, 176 skipped, 0 failed. Figure scripts are documentation, so this is a smoke test only. It checks that each script runs, not that the figure looks right.
AI-assisted: written with Claude Code.
🤖 Generated with Claude Code