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

Update ReadMe to run ROS2 Unit Test #3001

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions realsense2_camera/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ The xml files mentioned by the command can be directly opened also.

### Running pytests directly

Note :
1. All the commands for test execution has to be executed from realsense-ros folder. For example: If the ROS2 workspace was created based on Step 3 [Option2] of [this](https://github.com/IntelRealSense/realsense-ros/blob/ros2-development/README.md#installation).
Then, the path to execute the tests would be ~/ros2_ws/src/realsense-ros.

cd ~/ros2_ws/src/realsense-ros

2. Please setup below required environment variables. If not, Please prefix them for every test execution.

PYTHONPATH=$PYTHONPATH:$PWD/realsense2_camera/test/utils:$PWD/realsense2_camera//launch:$PWD/realsense2_camera//scripts

User can run all the tests in a pytest file directly using the below command:

Expand Down
Loading