hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Lucene-hadoop Wiki] Update of "HowToContribute" by NigelDaley
Date Fri, 02 Mar 2007 06:58:04 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification.

The following page has been changed by NigelDaley:
http://wiki.apache.org/lucene-hadoop/HowToContribute

------------------------------------------------------------------------------
   * Code should be formatted according to [http://java.sun.com/docs/codeconv/ Sun's conventions],
with one exception:
    * Indent two spaces per level, not four.
   * Contributions should pass existing unit tests.
-  * New unit tests should be provided to demonstrate bugs and fixes ([http://www.junit.org]).
+  * New unit tests should be provided to demonstrate bugs and fixes.  [http://www.junit.org
JUnit] is our test framework:
+   * You must implement a class that extends {{{junit.framework.TestCase}}} and whose class
name starts with {{{Test}}}.
+   * Define methods within your class whose names begin with {{{test}}}, and call JUnit's
many assert methods to verify conditions; these methods will be executed when you run {{{ant
test}}}.
-   * By default, do not let tests write any temporary files to /tmp.  Instead, the tests
should write to the location specified by the {{{test.build.data}}} system property.
+   * By default, do not let tests write any temporary files to {{{/tmp}}}.  Instead, the
tests should write to the location specified by the {{{test.build.data}}} system property.
-   * If a HDFS cluster or a Mapreduce cluster is needed by your test, please use {{{org.apache.hadoop.dfs.MiniDFSCluster}}}
and {{{org.apache.hadoop.mapred.MiniMRCluster}}}, respectively.
+   * If a HDFS cluster or a MapReduce cluster is needed by your test, please use {{{org.apache.hadoop.dfs.MiniDFSCluster}}}
and {{{org.apache.hadoop.mapred.MiniMRCluster}}}, respectively.  {{{TestMiniMRLocalFS}}} is
an example of a test that uses {{{MiniMRCluster}}}.
+   * Place your class in the {{{src/test}}} tree.
+   * {{{TestFileSystem.java}}} and {{{TestMapRed.java}}} are examples of standalone MapReduce-based
tests.
+   * {{{TestPath.java}}} is an example of a non MapReduce-based test.
  
  === Generating a patch ===
  

Mime
View raw message