gtestutils: Add g_test_summary() to add summary metadata to unit tests

This is a new function along the same lines as g_test_bug(): to allow
developers to annotate unit tests with information about the test (what
it tests, how it tests it) for future developers to read and learn from.

It will also output this summary as a comment in the test’s TAP output,
which might clarify test results.

Includes a unit test.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Fixes: #1450
This commit is contained in:
Philip Withnall
2019-05-15 13:33:52 +01:00
parent 81dbc7b07b
commit 4da8b7b35a
5 changed files with 79 additions and 0 deletions

View File

@@ -3162,6 +3162,7 @@ g_test_failed
g_test_message
g_test_bug_base
g_test_bug
g_test_summary
GTestLogFatalFunc
g_test_log_set_fatal_handler