1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/turo
Francisco Molina a0714298a3
tests/turo: reset before opening terminal
Some BOARD terminals are slow to start so if the BOARD is reset after
opening the terminal this can lead to off-by-one error when parsing
the output.

So instead do as testrunner and reset before opening the terminal.
Note that no interactive_sync is needed since a similar mechanism
happens in ShellInteraction.
2021-06-17 11:05:00 +02:00
..
tests tests/turo: reset before opening terminal 2021-06-17 11:05:00 +02:00
app.config.test tests/turo: Add automated turo test for json 2021-03-15 10:36:46 +01:00
main.c tests/turo: Add automated turo test for json 2021-03-15 10:36:46 +01:00
Makefile tests/turo: Add automated turo test for json 2021-03-15 10:36:46 +01:00
README.md tests/turo: Add automated turo test for json 2021-03-15 10:36:46 +01:00

TURO (Test Utils Result Output) Test

This shows a non-trival example of how to use the TURO module as a testing abstraction layer.

The test is written with only TURO commands allowing the underling output to be changed as needed depending on the interpreter. This means that the test will not need to be changed if output is changed. If the test results are output as json and the binary is too large, the TURO can be switched to CBOR to save space. The interpreter should also switch to a CBOR parser and the test should not need to be changed.

This should keep tests more stable, which is particularly useful for automated tests.