robotology / robot-testing-framework

Robot Testing Framework (RTF)
http://robotology.github.io/robot-testing-framework/index.html
GNU Lesser General Public License v2.1
19 stars 11 forks source link

[yarpmanager] increase (optionally) verbosity of yarpmanager #33

Open traversaro opened 9 years ago

traversaro commented 9 years ago

In case you are debugging a failure of setting up a fixture using the yarpmanager, it is quite difficult to understand what is going on. This because the yarpmanager fixture manager does not print any information on which application it is launching, on which dependency is waiting, etc etc. It does not print anything even if the testrunner was launched with the verbose option. This does make sense if using the yarpmanager application (because the user can check on the gui what is going on) but is a bit more complicated for use in rtf. cc @apaikan What is a good strategy to add some (optional) verbose print to yarpmanager ? I saw that libYARP_manager is relativly yarp-indipendent, so I don't know it it make sense to use the yarp output macros in it.

apaikan commented 9 years ago

libYARP_manager does not have in-code verbosity mode (unfortunately). However, any warning and error messages are reported by yarp::manager::ErrorLogger class which is handled by the YarpFixManager within RTF:

Staring test runner.
Test suit Basic Camera Tests Suite started...
[INFO]  (Basic Camera Tests Suite) reports: yarpmanager is setuping the fixture...
[ERROR] (Basic Camera Tests Suite) asserts error on (ret) with exception: yarpmanager cannot setup the fixture because cannot run MyModule on localhost : Can't execute command because No such file or directory 
[INFO]  (Basic Camera Tests Suite) reports: yarpmanager is tearing down the fixture...
Test suit Basic Camera Tests Suite failed!
Ending test runner.