-
 

ros_pytest package from ros_pytest repo

ros_pytest

Package Summary

Tags No category tags.
Version 0.2.1
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/machinekoder/ros_pytest.git
VCS Type git
VCS Version noetic-devel
Last Updated 2023-03-07
Dev Status DEVELOPED
CI status
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The ros_pytest package

Additional Links

No additional links.

Maintainers

  • Alexander Rössler

Authors

No additional authors.

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

CHANGELOG

Changelog for package ros_pytest

0.2.1 (2021-05-03)

  • Merge pull request #9 from jspricke/missing_dependencies Add dependency on python-pytest-cov
  • Contributors: Alexander Rössler, Jochen Sprickerhof

0.2.0 (2020-08-12)

  • Merge pull request #7 from machinekoder/fix-folders
  • Bugfix for pytest folder tests
  • Merge pull request #5 from sfalexrog/python3_compat
  • Merge pull request #6 from PilzDE/feature/add_coverage
  • Remove comment
  • Added reasoning and integrate if CATKIN_TEST_COVERAGE is set
  • Create subfolder for .coverage for each test
  • Add flag to pytest execution
  • Add coverage for pytest
  • package.xml: Use conditional dependencies
  • CMakeLists: Use catkin_install_python for script installation
  • Contributors: Alexander Gutenkunst, Alexander Rössler, Alexey Rogachevskiy, hslusarek

0.1.2 (2018-11-15)

  • Added add_pytests cmake macro
  • enable passing of additional commands
  • Contributors: Alexander Rössler, Markus Grimm

0.1.1 (2018-10-07)

  • Release for melodic

0.1.0

This is the first release the ros_pytest package.

It contains everything necessary to run pytests with rostest.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros_pytest at Robotics Stack Exchange

ros_pytest package from ros_pytest repo

ros_pytest

Package Summary

Tags No category tags.
Version 0.2.0
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/machinekoder/ros_pytest.git
VCS Type git
VCS Version melodic-devel
Last Updated 2023-03-07
Dev Status DEVELOPED
CI status
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The ros_pytest package

Additional Links

No additional links.

Maintainers

  • Alexander Rössler

Authors

No additional authors.

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

CHANGELOG

Changelog for package ros_pytest

0.2.0 (2020-08-12)

  • Merge pull request #7 from machinekoder/fix-folders
  • Bugfix for pytest folder tests
  • Merge pull request #5 from sfalexrog/python3_compat
  • Merge pull request #6 from PilzDE/feature/add_coverage
  • Remove comment
  • Added reasoning and integrate if CATKIN_TEST_COVERAGE is set
  • Create subfolder for .coverage for each test
  • Add flag to pytest execution
  • Add coverage for pytest
  • package.xml: Use conditional dependencies
  • CMakeLists: Use catkin_install_python for script installation
  • Contributors: Alexander Gutenkunst, Alexander Rössler, Alexey Rogachevskiy, hslusarek

0.1.2 (2018-11-15)

Added add_pytests cmake macro

  • Added add_pytests cmake macro
  • enable passing of additional commands
  • Contributors: Alexander Rössler, Markus Grimm

0.1.1 (2018-10-07)

  • *Release for melodic

0.1.0

This is the first release the ros_pytest package.

It contains everything necessary to run pytests with rostest.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros_pytest at Robotics Stack Exchange