From: <ik...@us...> - 2008-02-29 00:32:13
|
Revision: 1151 http://cutter.svn.sourceforge.net/cutter/?rev=1151&view=rev Author: ikezoe Date: 2008-02-28 16:31:50 -0800 (Thu, 28 Feb 2008) Log Message: ----------- * module/report/cut-report-xml.c, test/test-report-xml.c: Output test description. Modified Paths: -------------- trunk/ChangeLog trunk/cutter/module/report/cut-report-xml.c trunk/test/test-cut-report-xml.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-02-29 00:26:19 UTC (rev 1150) +++ trunk/ChangeLog 2008-02-29 00:31:50 UTC (rev 1151) @@ -4,6 +4,8 @@ * module/report/cut-report-xml.c: Adapt to new format. * test/report-test-dir: Removed. * module/report/cut-report-xml.c: Output message in detail element. + * module/report/cut-report-xml.c, test/test-report-xml.c: Output test + description. 2008-02-28 Kouhei Sutou <ko...@co...> Modified: trunk/cutter/module/report/cut-report-xml.c =================================================================== --- trunk/cutter/module/report/cut-report-xml.c 2008-02-29 00:26:19 UTC (rev 1150) +++ trunk/cutter/module/report/cut-report-xml.c 2008-02-29 00:31:50 UTC (rev 1151) @@ -448,7 +448,8 @@ while (name) { const gchar *value = va_arg(var_args, gchar*); - append_element_with_value(string, indent, name, value); + if (value) + append_element_with_value(string, indent, name, value); name = va_arg(var_args, gchar*); } } @@ -485,8 +486,12 @@ static void append_test_info_to_string (GString *string, CutTest *test) { + const gchar *description; + + description = cut_test_get_description(test); append_element_with_children(string, 4, "test", "name", cut_test_get_name(test), + "description", description, NULL); } Modified: trunk/test/test-cut-report-xml.c =================================================================== --- trunk/test/test-cut-report-xml.c 2008-02-29 00:26:19 UTC (rev 1150) +++ trunk/test/test-cut-report-xml.c 2008-02-29 00:31:50 UTC (rev 1151) @@ -99,11 +99,12 @@ " </test_case>\n" " <test>\n" " <name>dummy-success-test</name>\n" + " <description>A success test</description>\n" " </test>\n" " <status>success</status>\n" " <elapsed>0.0001</elapsed>\n" " </result>\n"; - test_object = cut_test_new("dummy-success-test", NULL, dummy_success_test); + test_object = cut_test_new("dummy-success-test", "A success test", dummy_success_test); g_signal_connect_after(test_object, "success", G_CALLBACK(cb_success_signal), NULL); cut_test_case_add_test(test_case, test_object); cut_assert(run_the_test(test_object)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |