Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

pytest support for ROS

Notifications You must be signed in to change notification settings

GITAI/ros_pytest

 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • CMake 80.9%
  • Python 19.1%