Skip to content

test(nodes): validate tutorial code and simplify scaffold tests - #216

Merged
chamsechan merged 1 commit into
mainfrom
test/tutorial-code-validation
Oct 25, 2026
Merged

chamsechan merged 1 commit into
mainfrom
test/tutorial-code-validation

Conversation

@chamsechan

@chamsechan chamsechan commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

The custom Node tutorial previously lacked automated validation of its actual C++ examples. Generate and compile fixtures directly from the three tutorial stages, execute their behavior examples, and check the registered Catalog descriptions, parameters and model bindings.

Add the test-only NodeUnderTest helper and use it in scaffolded tests to hide runtime wiring. Failed initialization clears the runnable node; focused tests cover failed requests, subsequent recovery and invalid initialization/input bindings. No production Node authoring contract changes.

Validation: the canonical local gate passed with 465 tests passed and 5 asset-dependent tests skipped (470 total). Three mutation checks confirmed that an invalid C++ identifier, incorrect stage-1 output and missing stage-2 description are each detected. Existing real-model/asset-dependent checks remain skipped.

@chamsechan
chamsechan merged commit 3ed80a0 into main Oct 25, 2026
6 checks passed
@chamsechan
chamsechan deleted the test/tutorial-code-validation branch October 25, 2026 14:21
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