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 ===