hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "HowToContribute" by KonstantinBoudnik
Date Tue, 23 Mar 2010 00:49:10 GMT
Dear Wiki user,

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

The "HowToContribute" page has been changed by KonstantinBoudnik.
http://wiki.apache.org/hadoop/HowToContribute?action=diff&rev1=41&rev2=42

--------------------------------------------------

    * 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|JUnit]]
is our test framework:
-   * You must implement a class that extends {{{junit.framework.TestCase}}} and whose class
name starts with {{{Test}}}.
+   * You must implement a class that uses {{{@Test}}} annotations for all test methods. Please
note, [[http://wiki.apache.org/hadoop/HowToDevelopUnitTests|Hadoop uses JUnit v4]].
-   * 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}}}.
+   * 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}}}. Please add meaningful messages to the assert statement to facilitate diagnostics.
    * 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.  {{{TestMiniMRLocalFS}}} is
an example of a test that uses {{{MiniMRCluster}}}.
    * Place your class in the {{{src/test}}} tree.

Mime
View raw message