<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5322752498935218336</id><updated>2024-10-24T21:48:26.298-07:00</updated><category term="Code Coverage"/><category term="JDK7"/><category term="JaCoCo"/><category term="Netbeans"/><title type='text'>Super Scale</title><subtitle type='html'>This blog exists for the purpose of sharing my thoughts on various issues and challenges I encounter as I try to develop a highly scalable and flexible applications.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://superscale.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5322752498935218336/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://superscale.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>saden1</name><uri>http://www.blogger.com/profile/15786808395990226563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg2g4jjDeDJCGWJYFdx916t-0hFmvhWJ3UbZSp487dPk631iyeBkna6K4r4OJSGDG0659WK_P1b0-E76RohUIJaKblPQbsvNQ31smabsel-CF8OCeZQKAmvCtK55zzFQ/s220/saden1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5322752498935218336.post-733362741394661286</id><published>2012-10-18T07:41:00.000-07:00</published><updated>2012-10-18T12:36:43.421-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Code Coverage"/><category scheme="http://www.blogger.com/atom/ns#" term="JaCoCo"/><category scheme="http://www.blogger.com/atom/ns#" term="JDK7"/><category scheme="http://www.blogger.com/atom/ns#" term="Netbeans"/><title type='text'>Cobertura, Java 7, Alternatives</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It has been a while since I have used &lt;a href=&quot;http://cobertura.sourceforge.net/&quot; target=&quot;_blank&quot;&gt;Cobertura&lt;/a&gt; and it has come to my attention that it still doesn&#39;t support Java 7. I am told by the &lt;a href=&quot;http://wiki.netbeans.org/MavenCodeCoverage&quot; target=&quot;_blank&quot;&gt;good people at Netbeans&lt;/a&gt; that &lt;a href=&quot;http://www.eclemma.org/jacoco/&quot; target=&quot;_blank&quot;&gt;JaCoCo&lt;/a&gt; is an  alternative worth trying and so I will.&lt;br /&gt;
&lt;br /&gt;

Update:

To integrate JaCoCo into your maven project you might interested to know that Netbeans integration may not work if you don&#39;t add the argLine from JacCoCo agent to your surefire plugin. Your maven build config should look something like this. Note the specification of &quot;jacocoArgLine&quot; property name and the passage of it to surefire via the argLine config property.

&lt;br /&gt;


&lt;pre class=&quot;brush: xml&quot;&gt;

&lt;project&gt;
    &lt;build&gt;
        &lt;plugins&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                &lt;version&gt;${plugin.surefire}&lt;/version&gt;
                &lt;configuration&gt;
                    &lt;argLine&gt;${jacocoArgLine} -server -Xms512m -Xmx1024m -XX:+AggressiveOpts -XX:CompileThreshold=200&lt;/argLine&gt;
                    &lt;forkMode&gt;once&lt;/forkMode&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
                &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
                &lt;version&gt;0.6.0.201210061924&lt;/version&gt;
                &lt;executions&gt;
                    &lt;execution&gt;
                        &lt;goals&gt;
                            &lt;goal&gt;prepare-agent&lt;/goal&gt;
                        &lt;/goals&gt;
                    &lt;/execution&gt;
                    &lt;execution&gt;
                        &lt;id&gt;report&lt;/id&gt;
                        &lt;phase&gt;prepare-package&lt;/phase&gt;
                        &lt;goals&gt;
                            &lt;goal&gt;report&lt;/goal&gt;
                        &lt;/goals&gt;
                    &lt;/execution&gt;
                &lt;/executions&gt;
                &lt;configuration&gt;
                    &lt;port&gt;11508&lt;/port&gt;
                    &lt;propertyName&gt;jacocoArgLine&lt;/propertyName&gt;
                    &lt;outputEncoding&gt;${project.build.sourceEncoding}&lt;/outputEncoding&gt;
                    &lt;sourceEncoding&gt;${project.build.sourceEncoding}&lt;/sourceEncoding&gt;
                    &lt;destFile&gt;${project.build.directory}/jacoco.exec&lt;/destFile&gt;
                    &lt;outputDirectory&gt;${project.build.directory}/jacoco&lt;/outputDirectory&gt;
                    &lt;classDumpDir&gt;${project.build.directory}/jacocoClassDump&lt;/classDumpDir&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
        &lt;/plugins&gt;
    &lt;/build&gt;
&lt;/project&gt;
&lt;/pre&gt;

+1 Netbeans

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://superscale.blogspot.com/feeds/733362741394661286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5322752498935218336/733362741394661286' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5322752498935218336/posts/default/733362741394661286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5322752498935218336/posts/default/733362741394661286'/><link rel='alternate' type='text/html' href='http://superscale.blogspot.com/2012/10/cobertura-java-7-alternatives.html' title='Cobertura, Java 7, Alternatives'/><author><name>saden1</name><uri>http://www.blogger.com/profile/15786808395990226563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg2g4jjDeDJCGWJYFdx916t-0hFmvhWJ3UbZSp487dPk631iyeBkna6K4r4OJSGDG0659WK_P1b0-E76RohUIJaKblPQbsvNQ31smabsel-CF8OCeZQKAmvCtK55zzFQ/s220/saden1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5322752498935218336.post-4157494052412643868</id><published>2012-10-03T21:32:00.000-07:00</published><updated>2012-10-03T21:32:03.861-07:00</updated><title type='text'>Say &amp;quot;NO&amp;quot; to JUnit and &amp;quot;YES&amp;quot; to TestNG</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The truth is JUnit is pretty sucky for anything but the simplest form of unit testing. Don&#39;t get me wrong, JUnit will always have a place in my heart but its&amp;nbsp;functionality&amp;nbsp;leaves much to be desired, especially compared to TestNG. If you are starting a new project you should most&amp;nbsp;definitely&amp;nbsp;say &quot;NO&quot; to JUnit and say &quot;YES&quot; to &lt;a href=&quot;http://testng.org/doc/index.html&quot; target=&quot;_blank&quot;&gt;TestNG&lt;/a&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Support for TestNG is robust on pretty much all the standard IDEs now (Netbeans, Eclipse, IDEA) which is an indication that there&#39;s wide adoption and support for it. With the &lt;a href=&quot;http://testng.org/doc/eclipse.html&quot; target=&quot;_blank&quot;&gt;Eclipse TestNG plugin&lt;/a&gt; there&#39;s even the ability to convert your old JUnit tests to TestNG tests. It&#39;s not a perfect and straight conversion and you will have to do some massaging but it beats doing it all manually.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
If you are ready to make the switch&amp;nbsp;&lt;a href=&quot;http://www.mkyong.com/unittest/junit-4-vs-testng-comparison/&quot; target=&quot;_blank&quot;&gt;mkyong.com has a pretty good comparison&lt;/a&gt;&amp;nbsp;&amp;nbsp;between JUnit and TestNG.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://superscale.blogspot.com/feeds/4157494052412643868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5322752498935218336/4157494052412643868' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5322752498935218336/posts/default/4157494052412643868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5322752498935218336/posts/default/4157494052412643868'/><link rel='alternate' type='text/html' href='http://superscale.blogspot.com/2012/10/say-no-to-junit-and-yes-to-testng.html' title='Say &amp;quot;NO&amp;quot; to JUnit and &amp;quot;YES&amp;quot; to TestNG'/><author><name>saden1</name><uri>http://www.blogger.com/profile/15786808395990226563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg2g4jjDeDJCGWJYFdx916t-0hFmvhWJ3UbZSp487dPk631iyeBkna6K4r4OJSGDG0659WK_P1b0-E76RohUIJaKblPQbsvNQ31smabsel-CF8OCeZQKAmvCtK55zzFQ/s220/saden1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5322752498935218336.post-701322932374813416</id><published>2012-10-02T14:01:00.000-07:00</published><updated>2012-10-02T14:01:11.476-07:00</updated><title type='text'>println &quot;Hello World!&quot;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hello All,&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Over the weekend I attended the &lt;a href=&quot;http://www.meetup.com/seattle-gtug&quot;&gt;Seattle Google Developer Group&lt;/a&gt; DevFest. It was an amazing experience. We got to hear thoughtful&amp;nbsp;discussion&amp;nbsp;about developing applications for Tablets/Google TV as well as developing apps using PhoneGap and HTML5. Saturday was mostly all lectures but Sunday was a hackfest where you got to work on whatever you like and compete for prizes. All though we weren&#39;t able to finish our project in time to demo it my team put together a solid&amp;nbsp;skeleton&amp;nbsp;for an application that would allow us to learn how to develop Andorid applications for bother tablet and phones.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you&#39;re interested in the project please checkout the &lt;a href=&quot;https://github.com/saden1/DevFest&quot;&gt;github repository for our project&lt;/a&gt;. I am hoping to continue to further refine and develop a complete application at some point as an&amp;nbsp;exercise&amp;nbsp;in developing native application and would&amp;nbsp;encourage&amp;nbsp;you to take a &lt;a href=&quot;https://github.com/saden1/DevFest/tree/master/MockUI&quot; target=&quot;_blank&quot;&gt;look at our&amp;nbsp;mock-ups&lt;/a&gt; (we use &lt;a href=&quot;http://wireframesketcher.com/&quot; target=&quot;_blank&quot;&gt;WireframeSketcher&lt;/a&gt;)&amp;nbsp;if you&#39;re&amp;nbsp;interested&amp;nbsp;in developing something similar as a learning&amp;nbsp;exercise.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://superscale.blogspot.com/feeds/701322932374813416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5322752498935218336/701322932374813416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5322752498935218336/posts/default/701322932374813416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5322752498935218336/posts/default/701322932374813416'/><link rel='alternate' type='text/html' href='http://superscale.blogspot.com/2012/10/println-hello-world.html' title='println &quot;Hello World!&quot;'/><author><name>saden1</name><uri>http://www.blogger.com/profile/15786808395990226563</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg2g4jjDeDJCGWJYFdx916t-0hFmvhWJ3UbZSp487dPk631iyeBkna6K4r4OJSGDG0659WK_P1b0-E76RohUIJaKblPQbsvNQ31smabsel-CF8OCeZQKAmvCtK55zzFQ/s220/saden1.jpg'/></author><thr:total>0</thr:total></entry></feed>