Skip to content

Test that VerifyXML reports the line of a nested error - #1304

Open
dvadovsz wants to merge 1 commit into
BehaviorTree:masterfrom
dvadovsz:test/verifyxml-nested-line-numbers
Open

dvadovsz wants to merge 1 commit into
BehaviorTree:masterfrom
dvadovsz:test/verifyxml-nested-line-numbers

Conversation

@dvadovsz

@dvadovsz dvadovsz commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Adds BehaviorTreeFactory.VerifyXMLReportsLineOfNestedError to gtest_factory.cpp. Each case puts an unregistered node a few levels deep and checks that the error names its line:

  • The recursive check: Sequence > Decorator > Control > <Action ID="Missing"/>.
  • The ReactiveSequence async-child scan: Sequence > Inverter > ReactiveSequence > <Missing/>.

Both pass on master. The test guards against an error being reported at the line of a parent node instead. I checked that by making VerifyXML report the parent's line, and the test failed with "line 5" instead of "line 6".

Test only, no library change.

Covers the recursive check and the ReactiveSequence async-child scan, each with the offending node a few levels below the BehaviorTree element.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@dvadovsz
dvadovsz marked this pull request as ready for review December 2, 2026 22:41

This branch has not been deployed

No deployments
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