Ask Your Question
0

Tests if ros master is not running using rostest

asked 2016-02-05 01:15:41 -0500

130s gravatar image

I like to write a test for a feature that detects if ros master is not running. Using rostest, which automatically starts ros master, is there a way to achieve this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-05 01:52:55 -0500

ahendrix gravatar image

I think you've answered your own question: since rostest starts a master, you won't be able to use it for tests where a master isn't running.

Why not use a standard test framework such as gtest or nosetest for your tests which don't require a ROS master to be running?

edit flag offensive delete link more

Comments

Looking at a catkin's document, using non-ROS test structures sound like a right path.

Nosetest is the framework for running Python unit tests. No ROS environment is available. See: Configuring rostest if your tests need a running roscore.

130s gravatar image 130s  ( 2016-02-09 11:14:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-05 01:15:41 -0500

Seen: 278 times

Last updated: Feb 05 '16