From b28e9797394beda8dcf35f1fd9cb3f0bcbda5f91 Mon Sep 17 00:00:00 2001 From: Joel Cunningham Date: Sun, 4 Mar 2018 02:38:55 -0600 Subject: [PATCH] unit: write out XML file This writes out the results of the unit tests in an XML file called lwip_unittests.xml in the same directory as the unittests executable. See https://libcheck.github.io/check/doc/check_html/check_4.html#XML-Logging for an example of the ouput. Of particular use is the duration field, for each test and for the entire test run. --- test/unit/lwip_unittests.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/lwip_unittests.c b/test/unit/lwip_unittests.c index be740777..c33e9d61 100644 --- a/test/unit/lwip_unittests.c +++ b/test/unit/lwip_unittests.c @@ -86,6 +86,7 @@ int main(void) #endif sr = srunner_create((suites[0])()); + srunner_set_xml(sr, "lwip_unittests.xml"); for(i = 1; i < num; i++) { srunner_add_suite(sr, ((suite_getter_fn*)suites[i])()); }