You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafu.apache.org by mh...@apache.org on 2014/03/04 12:59:11 UTC
svn commit: r1574051 [1/2] - in /incubator/datafu/site:
docs/datafu/contributing.html sitemap.xml
Author: mhayes
Date: Tue Mar 4 11:59:10 2014
New Revision: 1574051
URL: http://svn.apache.org/r1574051
Log:
Update datafu website with new gradle documentation
Modified:
incubator/datafu/site/docs/datafu/contributing.html
incubator/datafu/site/sitemap.xml
Modified: incubator/datafu/site/docs/datafu/contributing.html
URL: http://svn.apache.org/viewvc/incubator/datafu/site/docs/datafu/contributing.html?rev=1574051&r1=1574050&r2=1574051&view=diff
==============================================================================
--- incubator/datafu/site/docs/datafu/contributing.html (original)
+++ incubator/datafu/site/docs/datafu/contributing.html Tue Mar 4 11:59:10 2014
@@ -79,31 +79,27 @@
<h2 id="toc_2">Eclipse</h2>
<p>The following command generates the necessary files to load the project in Eclipse:</p>
-<pre class="highlight text">ant eclipse
+<pre class="highlight text">./gradlew eclipse
+</pre>
+<p>To clean up the eclipse files:</p>
+<pre class="highlight text">./gradlew cleanEclipse
</pre>
<p>Note that you may run out of heap when executing tests in Eclipse. To fix this adjust your heap settings for the TestNG plugin. Go to Eclipse->Preferences. Select TestNG->Run/Debug. Add "-Xmx1G" to the JVM args.</p>
<h2 id="toc_3">Build the JAR</h2>
-<pre class="highlight text">ant jar
+
+<p>The Apache DataFu Pig library can be built by running the command below. </p>
+<pre class="highlight text">./gradlew assemble
</pre>
+<p>The built JAR can be found under <code>datafu-pig/build/libs</code> by the name <code>datafu-pig-x.y.z.jar</code>, where x.y.z is the version.</p>
+
<h2 id="toc_4">Running Tests</h2>
<p>All the tests can be run from within eclipse. However they can also be run from the command line. To run all the tests:</p>
-<pre class="highlight text">ant test
-</pre>
-<p>To run specific tests from the command line, you have a few options. One option is to run all tests within a given class. To do this, run the same command but override <code>testclasses.pattern</code>, which defaults to <code>**/*.class</code>. For example, to run all tests defined in <code>QuantileTests</code>:</p>
-<pre class="highlight text">ant test -Dtestclasses.pattern=**/QuantileTests.class
+<pre class="highlight text">./gradlew test
</pre>
-<p>The other option is to run a specific test within a class:</p>
-<pre class="highlight text">ant test -Dtest.methods=datafu.test.pig.stats.QuantileTests.quantileTest
-</pre>
-<p>You may also provide a command separated list of tests:</p>
-<pre class="highlight text">ant test -Dtest.methods=datafu.test.pig.stats.QuantileTests.quantileTest,datafu.test.pig.stats.QuantileTests.quantile2Test
-</pre>
-<h2 id="toc_5">Compute code coverage</h2>
-
-<p>We use <a href="http://cobertura.github.io/cobertura/">Cobertura</a> to compute code coverage, which can be run with:</p>
-<pre class="highlight text">ant coverage
+<p>To run a specific set of tests from the command line, you can define the <code>test.single</code> system property. For example, to run all tests defined in <code>QuantileTests</code>:</p>
+<pre class="highlight text">./gradlew :datafu-pig:test -Dtest.single=QuantileTests
</pre>
</div>
</div>