ros_pytest repository

Repository Summary

Checkout URI https://github.com/machinekoder/ros_pytest.git
VCS Type git
VCS Version melodic-devel
Last Updated 2018-11-15
Dev Status DEVELOPED
Released RELEASED

Packages

Name Version
ros_pytest 0.1.2

README

Description

The package provides a wrapper for pytest to be using conjunction with ROS.

To use the ros_pytest_runner use the following stanza in your .test launch file:

<launch>
  <param name="test_module" value="$(find your_package)/src"/>
  <test test-name="test_lib" pkg="ros_pytest" type="ros_pytest_runner" />
</launch>

Make sure to pass your test path as parameter test_module to the runner.

A more elaborate description for why I created this ROS package can be found on my blog.

Run

To run the unit tests use following command inside your ROS package catkin run_tests --this.

Then view the test results with: catkin_test_results

Repository Summary

Checkout URI https://github.com/machinekoder/ros_pytest.git
VCS Type git
VCS Version kinetic-devel
Last Updated 2018-11-15
Dev Status DEVELOPED
Released RELEASED

Packages

Name Version
ros_pytest 0.1.2

README

Description

The package provides a wrapper for pytest to be using conjunction with ROS.

To use the ros_pytest_runner use the following stanza in your .test launch file:

<launch>
  <param name="test_module" value="$(find your_package)/src"/>
  <test test-name="test_lib" pkg="ros_pytest" type="ros_pytest_runner" />
</launch>

Make sure to pass your test path as parameter test_module to the runner.

A more elaborate description for why I created this ROS package can be found on my blog.

Run

To run the unit tests use following command inside your ROS package catkin run_tests --this.

Then view the test results with: catkin_test_results