ut
ut copied to clipboard
Provide a name for test suites
A nice feature to have would be to have a name for a test suite that shows up in the error messages when a test fails. Maybe something like this?
Starting test suite "Serial Communication Utilities"
==========
Running "[success] read<Length>"...PASSED
Running "[failure bytes_available] read<Length>"...PASSED
Running "[failure read] read<Length>"...PASSED
Running "[success] write_then_read"...PASSED
Running "[failure bytes_available] write_then_read"...PASSED
Running "[failure read] write_then_read"...PASSED
Running "[failure on timeout] read"...
util.test.cpp:306:FAILED [nullptr == 0x16d6a5bf0]
util.test.cpp:307:FAILED [0 == 1024]
FAILED
Running "[failure on write] write_then_read"...PASSED
Running "[failure on timeout] write_then_read"...
util.test.cpp:354:FAILED [nullptr == 0x16d6a5bc0]
util.test.cpp:355:FAILED [0 == 1024]
FAILED
===========
Ending test suite "Serial Communication Utilities"
I'm open to any way of presenting this. Could even put the test suite name before the test name.
I would also like to have this feature and am investigating how it might be done.
agree, let's add it!
Would love that as well! @redredlobster do you need any help?