ut icon indicating copy to clipboard operation
ut copied to clipboard

Provide a name for test suites

Open kammce opened this issue 2 years ago • 3 comments

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.

kammce avatar Jun 04 '22 00:06 kammce

I would also like to have this feature and am investigating how it might be done.

redredlobster avatar Jun 20 '22 00:06 redredlobster

agree, let's add it!

krzysztof-jusiak avatar Jun 20 '22 23:06 krzysztof-jusiak

Would love that as well! @redredlobster do you need any help?

ladislas avatar Sep 26 '22 13:09 ladislas