Skip to content

Extend tests of the legacy version#259

Open
saikishor wants to merge 20 commits into
ros:rollingfrom
saikishor:extend/legacy_version/tests
Open

Extend tests of the legacy version#259
saikishor wants to merge 20 commits into
ros:rollingfrom
saikishor:extend/legacy_version/tests

Conversation

@saikishor

Copy link
Copy Markdown
Contributor

This PR is mainly to extend the tests of the legacy 1.0 version for most possible combinations of data

Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
@saikishor saikishor force-pushed the extend/legacy_version/tests branch from 7494637 to 0c378f3 Compare April 30, 2026 11:14
saikishor added 3 commits May 4, 2026 22:37
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
@saikishor saikishor force-pushed the extend/legacy_version/tests branch from 818a382 to 7666d01 Compare May 5, 2026 21:33
saikishor added 4 commits May 5, 2026 23:38
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
@saikishor saikishor marked this pull request as ready for review May 6, 2026 17:24
@saikishor

Copy link
Copy Markdown
Contributor Author

@scpeters @ahcorde FYI

@scpeters scpeters left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love seeing new tests!

I have two thoughts:

  1. All of these new tests use URDFs defined in string constants within a test. Alternatively they could be defined in separate files. There are trade-offs with each approach:

    • Benefits of testing URDF string constants: URDF is defined right next to its test, making it easier to cross-reference between the two. You don't need to deal with loading from the filesystem. Don't need to choose filenames for the test URDFs.
    • Benefits of testing URDF files: the test files can also serve as a reference, and are easier to reuse.

    In sdformat, we use a mixture of both in our tests, but I've found the test files in the test/sdf folder rather useful as references. I suggest converting at least a few of the test URDF string constants to test files.

  2. This test is over 2000 lines; I think it would be easier to navigate and interpret if it was split into multiple .cpp files

saikishor added 3 commits May 20, 2026 18:46
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
@saikishor saikishor requested a review from scpeters May 20, 2026 21:53
@saikishor

Copy link
Copy Markdown
Contributor Author

@scpeters what do you think about the changes=

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.

2 participants