<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: ant and junit 5 &#8211; outputting test duration and failure to the log	</title>
	<atom:link href="https://www.selikoff.net/2018/07/28/ant-and-junit-5-outputting-test-duration-and-failure-to-the-log/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.selikoff.net/2018/07/28/ant-and-junit-5-outputting-test-duration-and-failure-to-the-log/</link>
	<description>Java/J2EE Software Development and Technology Discussion Blog</description>
	<lastBuildDate>Sun, 20 Nov 2022 17:53:15 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Jeanne Boyarsky		</title>
		<link>https://www.selikoff.net/2018/07/28/ant-and-junit-5-outputting-test-duration-and-failure-to-the-log/comment-page-1/#comment-312640</link>

		<dc:creator><![CDATA[Jeanne Boyarsky]]></dc:creator>
		<pubDate>Sun, 20 Nov 2022 17:53:15 +0000</pubDate>
		<guid isPermaLink="false">https://www.selikoff.net/?p=9001#comment-312640</guid>

					<description><![CDATA[Ah it&#039;s in the docs https://ant.apache.org/manual/Tasks/junitlauncher.html

If the value is set to true then this task, upon completion of the test execution, prints the summary of the execution to System.out. Starting Ant 1.10.10, unlike in previous versions, this task itself generates the summary instead of using the one generated by the JUnit 5 platform.]]></description>
			<content:encoded><![CDATA[<p>Ah it&#8217;s in the docs <a href="https://ant.apache.org/manual/Tasks/junitlauncher.html" rel="nofollow ugc">https://ant.apache.org/manual/Tasks/junitlauncher.html</a></p>
<p>If the value is set to true then this task, upon completion of the test execution, prints the summary of the execution to System.out. Starting Ant 1.10.10, unlike in previous versions, this task itself generates the summary instead of using the one generated by the JUnit 5 platform.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jeanne Boyarsky		</title>
		<link>https://www.selikoff.net/2018/07/28/ant-and-junit-5-outputting-test-duration-and-failure-to-the-log/comment-page-1/#comment-312638</link>

		<dc:creator><![CDATA[Jeanne Boyarsky]]></dc:creator>
		<pubDate>Sun, 20 Nov 2022 17:48:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.selikoff.net/?p=9001#comment-312638</guid>

					<description><![CDATA[Upgrading Ant solves this problem  I tested with 1.10.12 but see a comment that 1.10.10 worked for someone else who works on the forum software.

Now I see it in the style I am used to with Maven. For example:
[junitlauncher] Running com.javaranch.jforum.timeout.AbstractLoadRestrictionPolicyTest
[junitlauncher] Tests run: 12, Failures: 0, Aborted: 0, Skipped: 0, Time elapsed: 0.05 sec]]></description>
			<content:encoded><![CDATA[<p>Upgrading Ant solves this problem  I tested with 1.10.12 but see a comment that 1.10.10 worked for someone else who works on the forum software.</p>
<p>Now I see it in the style I am used to with Maven. For example:<br />
[junitlauncher] Running com.javaranch.jforum.timeout.AbstractLoadRestrictionPolicyTest<br />
[junitlauncher] Tests run: 12, Failures: 0, Aborted: 0, Skipped: 0, Time elapsed: 0.05 sec</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Filipe Silva		</title>
		<link>https://www.selikoff.net/2018/07/28/ant-and-junit-5-outputting-test-duration-and-failure-to-the-log/comment-page-1/#comment-261002</link>

		<dc:creator><![CDATA[Filipe Silva]]></dc:creator>
		<pubDate>Thu, 22 Oct 2020 10:42:26 +0000</pubDate>
		<guid isPermaLink="false">https://www.selikoff.net/?p=9001#comment-261002</guid>

					<description><![CDATA[And a fix for my fix:
-double numSeconds = duration.toNano() / (double) 1_000_000_000;
+double numSeconds = duration.toNanos() / (double) 1_000_000_000;]]></description>
			<content:encoded><![CDATA[<p>And a fix for my fix:<br />
-double numSeconds = duration.toNano() / (double) 1_000_000_000;<br />
+double numSeconds = duration.toNanos() / (double) 1_000_000_000;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Filipe Silva		</title>
		<link>https://www.selikoff.net/2018/07/28/ant-and-junit-5-outputting-test-duration-and-failure-to-the-log/comment-page-1/#comment-261001</link>

		<dc:creator><![CDATA[Filipe Silva]]></dc:creator>
		<pubDate>Thu, 22 Oct 2020 10:40:06 +0000</pubDate>
		<guid isPermaLink="false">https://www.selikoff.net/?p=9001#comment-261001</guid>

					<description><![CDATA[Ant 1.10.9 is here and this still seems to be an issue.

Your solution is quite nice but I don&#039;t really like waiting for all the tests to finish to get a summary at the end. It also doesn&#039;t work nice with the option `printSummary` as your summary is shown after all the intermediate summaries if this option is turned on.

An improvement would be to capture the `System.out` `PrintStream` into a local variable before it gets replaced by other listeners, you can do this in this class&#039; constructor for example, and then print to it. No need to use an auxiliary file anymore and your summary can be printed right before the default one from `printSummary`. Pretty cool.

Please allow me to do a quick fix too:
-double numSeconds = duration.getNano() / (double) 1_000_000_000;
+double numSeconds = duration.toNano() / (double) 1_000_000_000;

Cheers!]]></description>
			<content:encoded><![CDATA[<p>Ant 1.10.9 is here and this still seems to be an issue.</p>
<p>Your solution is quite nice but I don&#8217;t really like waiting for all the tests to finish to get a summary at the end. It also doesn&#8217;t work nice with the option `printSummary` as your summary is shown after all the intermediate summaries if this option is turned on.</p>
<p>An improvement would be to capture the `System.out` `PrintStream` into a local variable before it gets replaced by other listeners, you can do this in this class&#8217; constructor for example, and then print to it. No need to use an auxiliary file anymore and your summary can be printed right before the default one from `printSummary`. Pretty cool.</p>
<p>Please allow me to do a quick fix too:<br />
-double numSeconds = duration.getNano() / (double) 1_000_000_000;<br />
+double numSeconds = duration.toNano() / (double) 1_000_000_000;</p>
<p>Cheers!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
