Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(path_generator): add tests for path_generator #1

Closed
wants to merge 30 commits into from

Conversation

mitukou1109
Copy link
Owner

@mitukou1109 mitukou1109 commented Nov 8, 2024

Description

This PR adds tests for the node interface and utility functions in the autoware_path_generator package.

How was this PR tested?

colcon test --packages-select autoware_path_generator --event-handlers console_cohesion+

gives the following result:

1: [==========] Running 6 tests from 2 test suites.
1: [----------] Global test environment set-up.
1: [----------] 1 test from PlanningModuleInterfaceTest
1: [ RUN      ] PlanningModuleInterfaceTest.NodeTestWithExceptionTrajectory
1: [ERROR] [1733300119.198900944] [path_generator]: input route is empty, ignoring...
1: [       OK ] PlanningModuleInterfaceTest.NodeTestWithExceptionTrajectory (1694 ms)
1: [----------] 1 test from PlanningModuleInterfaceTest (1694 ms total)
1: 
1: [----------] 5 tests from PathGeneratorUtilsTest
1: [ RUN      ] PathGeneratorUtilsTest.getPreviousLaneletWithinRoute
1: [       OK ] PathGeneratorUtilsTest.getPreviousLaneletWithinRoute (55 ms)
1: [ RUN      ] PathGeneratorUtilsTest.getNextLaneletWithinRoute
1: [       OK ] PathGeneratorUtilsTest.getNextLaneletWithinRoute (48 ms)
1: [ RUN      ] PathGeneratorUtilsTest.getLaneletsWithinRouteUpTo
1: [       OK ] PathGeneratorUtilsTest.getLaneletsWithinRouteUpTo (51 ms)
1: [ RUN      ] PathGeneratorUtilsTest.getLaneletsWithinRouteAfter
1: [       OK ] PathGeneratorUtilsTest.getLaneletsWithinRouteAfter (49 ms)
1: [ RUN      ] PathGeneratorUtilsTest.getLaneletsWithinRoute
1: [       OK ] PathGeneratorUtilsTest.getLaneletsWithinRoute (49 ms)
1: [----------] 5 tests from PathGeneratorUtilsTest (252 ms total)
1: 
1: [----------] Global test environment tear-down
1: [==========] 6 tests from 2 test suites ran. (1946 ms total)
1: [  PASSED  ] 6 tests.

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Copy link

github-actions bot commented Nov 8, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
@mitukou1109
Copy link
Owner Author

I will close this PR since the package has been moved to autoware.core.

@mitukou1109 mitukou1109 closed this Jan 9, 2025
@mitukou1109 mitukou1109 deleted the test/path_generator branch January 27, 2025 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant