ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unittest are meant to test your libraries or ROS free code(Checkout here in 6. Levels of testing) may be only in Python and C++. So theoretically they should not depend on ROS related libraries. For unittest you can take the parameters as input from a yaml file. To answer your questions:

  1. Parameter server at the moment is part of roscore. So without running roscore it is not possible.

  2. Yes without roscore input from a file, or with upload them to paramter server after running roscore and now take the information now from parameter server.

  3. Yes but not a good idea how about grouping the similar tests in test suites for consistency. A nice idea would be to follow AAA Cycle

Unittest are meant to test your libraries or ROS free code(Checkout here in 6. Levels of testing) may be only in Python and C++. So theoretically they should not depend on ROS related libraries. For unittest you can take the parameters as input from a yaml file. To answer your questions:

  1. Parameter server at the moment is part of roscore. So without running roscore it is not possible.

  2. Yes without roscore input from a file, or with upload them to paramter parameter server after running roscore and now take the information now from parameter server.

  3. Yes but not a good idea how about grouping the similar tests in test suites for consistency. A nice idea would be to follow AAA Cycle

Unittest are meant to test your libraries or a ROS free code(Checkout here in 6. Levels of testing) may be only in Python and C++. So theoretically they should not depend on ROS related libraries. For unittest you can take the parameters as input from a yaml file. To answer your questions:

  1. Parameter server at the moment is part of roscore. So without running roscore it is not possible.

  2. Yes without roscore input from a file, or with upload them to parameter server after running roscore and now take the information now from parameter server.

  3. Yes but not a good idea how about grouping the similar tests in test suites for consistency. A nice idea would be to follow AAA Cycle