Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test ROS Packages Tutorial

Table of Contents

About

Example package for ROS-testing the package and implementing a github workflow.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • ROS noetic
  • rostest

Installing

  1. Clone repo into catkin_ws/src
  2. build ws

Add own remote to see github workflow after pushing.

Usage

For running the example test via command line:

rostest test_packages_tutorial load_param.test

For changing how and when github is testing the package: Modify ci-focal-action.yml

New TestCases

  • New Test Cases can be added in test_params.py, using unittest or by creating a new test_node.
  • A launch file for testing has to be created (example: load_param.test). Modify CMakeLists.txt for testing:
if (CATKIN_ENABLE_TESTING)
  find_package(rostest REQUIRED)

  # catkin_download_test_data()

  add_rostest(test/load_param.test)
#   add_rostest(tests/your_rostest.test ARGS arg1:=true arg2:=false)
endif()

About

test repo

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages