RIOT-OS / RobotFW-tests

Includes tests for RIOT based on the Robot Framework
GNU Lesser General Public License v2.1
4 stars 13 forks source link

feat(error_code): Add more verbose error code #37

Open MrKevinWeiss opened 5 years ago

MrKevinWeiss commented 5 years ago

Currently the console gives feedback if something fails such as

==============================================================================
tests_periph_timer                                                            
==============================================================================
tests_periph_timer.Periph Timer Base :: Verify basic functionality of the P...
==============================================================================
Timer Init Should Succeed :: Verify timer_init return code            | FAIL |
'Error' does not contain 'Success'
------------------------------------------------------------------------------

It would be nice to have the full struct printed so we can see the values and the command in the console output, something like:

==============================================================================
tests_periph_timer                                                            
==============================================================================
tests_periph_timer.Periph Timer Base :: Verify basic functionality of the P...
==============================================================================
Timer Init Should Succeed :: Verify timer_init return code            | FAIL |
`Error' does not contain 'Success'
cmd: init_val(dev=0)
data: 5
msg: Initializing the periph timer
result: Error

------------------------------------------------------------------------------