<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Denver Dev Blog &#187; ContinuousIntegration</title>
	<atom:link href="http://ambientideas.com/blog/index.php/tag/continuousintegration/feed/" rel="self" type="application/rss+xml" />
	<link>http://ambientideas.com/blog</link>
	<description>Matthew McCullough&#039;s insights on software development as co-founder of Ambient Ideas, LLC</description>
	<lastBuildDate>Mon, 30 Aug 2010 03:10:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Maven Unit Tests and Continuous Integration Servers</title>
		<link>http://ambientideas.com/blog/index.php/2009/03/maven-unit-tests-and-continuous-integration-servers/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/03/maven-unit-tests-and-continuous-integration-servers/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 19:50:20 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Maven]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ContinuousIntegration]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/03/maven-unit-tests-and-continuous-integration-servers/</guid>
		<description><![CDATA[ If you are running a Continuous Integration server such as  Hudson , you'll want to consider routing your  SureFire  outputs to the console so that they'll appear in the build-report logs.   If you leave SureFire at its  default , it will output each test's success or failure  to an individual test XML and TXT file , but those are likely not in an exposed directory on your CI server.   If instead, you  route the output to the console , it will get reported in your failure emails that your CI server is capable of sending. ]]></description>
			<content:encoded><![CDATA[<p>If you are running a Continuous Integration server such as <a href="https://hudson.dev.java.net/" target="_blank">Hudson</a>, you&#8217;ll want to consider routing your <a href="http://maven.apache.org/plugins/maven-surefire-plugin/" target="_blank">SureFire</a> outputs to the console so that they&#8217;ll appear in the build-report logs. If you leave SureFire at its <strong>default</strong>, it will output each test&#8217;s success or failure <strong>to an individual test XML and TXT file</strong>, but those are likely not in an exposed directory on your CI server. If instead, you <a href="http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#useFile" target="_blank">route the output to the console</a>, it will get reported in your failure emails that your CI server is capable of sending.</p>
<p>Just <a href="http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#useFile" target="_blank">pass the useFile=false parameter</a> on the command line or set it in the plugin config section of your pom.xml.</p>
<pre>
<code>mvn test -Dsurefire.useFile=false</code>
</pre>
<p></p>
<p>Before:</p>
<pre>
<code><span style="color: #6C1506;">-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.ambientideas.AppTest
Hello World! This is a JUnit test!
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.045 sec &lt;&lt;&lt; FAILURE!Results :Failed tests:testApp(com.ambientideas.AppTest)Tests run: 1, Failures: 1, Errors: 0, Skipped: 0</span></code>
</pre>
<p>After:</p>
<pre>
<code><span style="color: #3C7D00;">-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.ambientideas.AppTest
Hello World! This is a JUnit test!
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.045 sec &lt;&lt;&lt; FAILURE!
testApp(com.ambientideas.AppTest)  Time elapsed: 0.014 sec  &lt;&lt;&lt; FAILURE!
<span style="color: #0B0581;">junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at com.ambientideas.AppTest.testApp(AppTest.java:37)</span>

Results :Failed tests:testApp(com.ambientideas.AppTest)Tests run: 1, Failures: 1, Errors: 0, Skipped: 0</span></code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/03/maven-unit-tests-and-continuous-integration-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
