Improve tap format of gtest suite
Hello,
I recently begin to use the TAP format for glib test output (which is the recommended output format since glib 2.62) and I came across a few thoughts by reading the glib code and the TAP specifications (https://testanything.org/tap-version-13-specification.html):
- glib is missing an option to send the TAP output to a file (handy for post processing with other tools which consumes TAP format), see !2094 (closed)
- glib is missing the version line, I opened a MR for that: !2092 (closed)
- from what I understand from the spec (while it is not very clear) is that the use of commentaries (aka diagnostics) should go after the test line (the one which start with 'ok' or 'not ok') which is not the case for glib test suite where comments came on the flow (so before test results).
- glib test suite doesn't use the yaml format for diagnostics (though it seems not required).
For the first point, I don't think it can harm anybody to have the TAP version at the beginning. For point 3 and 4, I don't know if it desirable or not so I'm asking you guys what you think of that (and of course I'm open to implement suggestions)
Edited by MARTINSONS Frederic