{"id":218,"date":"2009-08-19T13:36:21","date_gmt":"2009-08-19T17:36:21","guid":{"rendered":"http:\/\/blogs.n1zyy.com\/andrew\/?p=218"},"modified":"2009-08-19T13:36:21","modified_gmt":"2009-08-19T17:36:21","slug":"cruisecontrol-test-results-with-maven","status":"publish","type":"post","link":"https:\/\/blogs.n1zyy.com\/andrew\/2009\/08\/19\/cruisecontrol-test-results-with-maven\/","title":{"rendered":"Cruisecontrol Test Results with Maven"},"content":{"rendered":"<p>Today I finally figured out how to integrate the results of JUnit tests run via the Maven surefire plugin with the Test Results tab in CruiseControl. It was actually blindingly simple, however, I couldn&#8217;t seem to find a straight-forward explanation anywhere.<\/p>\n<p>By default, the Surefire plugin dumps the JUnit XML logs into the <code>target\/surefire-reports<\/code> directory. For the results to show on the Test Results tab, these log files simply need to be merged into the Cruisecontrol log. This is accomplished via a <a href=\"http:\/\/cruisecontrol.sourceforge.net\/main\/configxml.html#merge\">merge element<\/a> in the log section of the Cruisecontrol config.xml file:<\/p>\n<pre>&lt;log&gt;\n\t&lt;merge\n\t\tdir=\"projects\/${project.name}\/target\/surefire-reports\"\n\t\tpattern=\"TEST-*.xml\"\/&gt;\n&lt;\/log&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Today I finally figured out how to integrate the results of JUnit tests run via the Maven surefire plugin with the Test Results tab in CruiseControl. It was actually blindingly simple, however, I couldn&#8217;t seem to find a straight-forward explanation anywhere. By default, the Surefire plugin dumps the JUnit XML logs into the target\/surefire-reports directory. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[45,54,56,65,72,76],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-cruisecontrol","tag-junit","tag-maven","tag-report","tag-surefire","tag-test-results"],"_links":{"self":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/comments?post=218"}],"version-history":[{"count":0,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/218\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/media?parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/categories?post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/tags?post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}