[Documentation] [TitleIndex] [WordIndex

Running rostest manually from the command-line

The rostest tool lets you manually run rostest files. NOTE: you can also run rostest files inside of roslaunch -- roslaunch will run everything except for the test nodes.

Usage

rostest <package-name> <test-filename> [args]

rostest <test-file-path> [args]

XML output

By default all console output from your test node is routed to a specially-formatted XML file, which can be parsed by automated build and test systems. When developing a test, you may want to see this output to help understand what's going on. You have two options:

  1. Look at the XML file after running the test. If the pkg is mypkg and the test-name is mytest, then your output will be in $ROS_ROOT/test/test_results/mypkg/TEST-mytest.xml.

  2. Run rostest in text mode, via the ---text option, e.g.:

    rostest --text mytest.test
    You'll get console output on the screen.

2024-03-23 12:57